@media (max-width: 767.98px) {
  .gifts-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(5, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 88vh !important;
    max-height: 88vh !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  /* Prevent horizontal overflow on narrow screens caused by 100vw and scrollbars */
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
  .gifts-grid {
    box-sizing: border-box !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}
@media (max-width: 767.98px) and (max-width: 767.98px) {
  .gifts-grid {
    grid-template-rows: none !important;
    grid-auto-rows: 19vh !important;
  }
  .gift-item {
    height: 100% !important;
    min-height: 0 !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }
  .gift-item-image {
    border-radius: 6px !important;
    height: 62px !important;
    min-height: 0 !important;
    max-height: 72px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .gift-item-image img {
    border-radius: 6px !important;
    height: 58px !important;
    max-height: 64px !important;
  }
  .giftblock .gift-block {
    padding: 3px !important;
    border-radius: 5px !important;
  }
  .giftblock .gift-block .gift-image-block {
    height: auto !important;
    margin-bottom: 2px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 0 !important;
  }
  .giftblock .gift-block span {
    font-size: 10px !important;
    margin-bottom: 2px !important;
  }
  .giftblock .gift-block span:nth-child(3) {
    font-size: 11px !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
  }
  .giftscost {
    font-size: 10px !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
    gap: 1px !important;
  }
  .gift-item[data-glow] .gift-item-image {
    box-shadow: 0 0 4px 1px rgba(71, 98, 219, 0.13) !important;
    animation: none !important;
  }
}
@media (max-width: 767.98px) {
  .gift-item {
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 1/1 !important;
    height: 100% !important;
    width: 100% !important;
    padding: 2px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.3) !important;
  }
  .gift-item-image {
    border-radius: 7px !important;
  }
  .gift-item-image img {
    border-radius: 7px !important;
  }
  .giftblock .gift-block {
    padding: 10px !important;
    border-radius: 10px !important;
  }
  .giftblock .gift-block .gift-image-block {
    height: 90px !important;
    margin-bottom: 8px !important;
    border-radius: 7px !important;
  }
  .giftblock .gift-block span {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }
  .giftblock .gift-block span:nth-child(3) {
    font-size: 14px !important;
    padding: 6px 8px !important;
    border-radius: 7px !important;
  }
  .giftscost {
    font-size: 12px !important;
    padding: 6px 8px !important;
    border-radius: 7px !important;
    gap: 4px !important;
  }
  .gift-item[data-glow] .gift-item-image {
    box-shadow: 0 0 8px 2px rgba(71, 98, 219, 0.25) !important;
    animation: none !important;
  }
}
@media (max-width: 767.98px) {
  /* Stretch gift image to fill most of the cell */
  .gift-item {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
  }
  /* Prevent any visual overflow from images or shadows */
  .gifts-main-block, .gifts-grid, .giftblock .gift-block, .gift-item, .giftblock .gift-block .gift-image-block {
    overflow: hidden !important;
  }
  .giftblock .gift-block .gift-image-block {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 8px !important;
    background: #0f1720 !important;
    box-shadow: inset 0 6px 24px -18px rgba(0, 0, 0, 0.6), inset 0 -12px 24px -18px rgba(0, 0, 0, 0.45) !important;
    overflow: hidden !important;
    border-radius: 8px !important;
  }
  .gift-item-image {
    width: 68% !important;
    height: auto !important;
    max-height: 100% !important;
    display: block !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border-radius: 6px !important;
  }
  .gift-item-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    transform: none !important;
    margin: 0 auto !important;
  }
}
.gifts-main-block > a[class^=icon], .gifts-main-block .main-gift, .gifts-main-block .roulette > #sound-point, .gifts-main-block .roulette .roulette-slider, #prize .modal-content {
  background-size: 100% 100%;
}

/* Banner new styles */
.banner-new {
  padding: 12px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1e2a33, #0f1214);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.banner-new .banner-inner {
  position: relative;
  min-height: 96px;
  display: flex;
  align-items: center;
}

.banner-new .banner-left {
  flex: 1;
  padding: 10px 12px;
  z-index: 3;
}

.banner-new .banner-right {
display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    position: absolute;
    width: 100%;
    top: 50px;
}

.banner-new .banner-image {
display: flex;
    width: 100%;
    height: 110px;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
    padding: 0;
}

.banner-new .banner-image img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.banner-title {
  color: #fff;
  font-size: 22px;
  margin: 0 0 6px;
  line-height: 1.05;
}

.banner-subtitle {
  color: #c5ceed;
  margin: 0 0 8px;
  font-size: 13px;
}

.banner-meta {
display: flex;
    align-items: center;
    gap: 10px;
    bottom: 10px;
    left: 10px;
    position: absolute;
}

.banner-timer {
  color: #fff;
  font-weight: 700;
  background: #0b0b0b;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

/* Overlay and content positioning for readable text over background */
.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(2, 6, 12, 0.55), rgba(6, 16, 32, 0.22));
  border-radius: 12px;
}

.banner-new .overlay-content {
position: relative;
    z-index: 4;
    padding-left: 12px;
    height: 160px;
}

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

@media (max-width: 767.98px) {
  .banner-new {
    padding: 8px;
    border-radius: 10px;
  }
  .banner-new .banner-inner {
    min-height: 78px;
  }
  .banner-title {
    font-size: 16px;
  }
  .banner-subtitle {
    font-size: 12px;
  }
  .banner-timer {
    padding: 6px 8px;
    font-size: 12px;
  }
}
.gifts-main-block {
  width: 100%;
  background: #131821;
  border: 1px solid #1d2436;
  border-radius: 15px;
  padding: 30px;
  height: auto;
  overflow: hidden;
  position: relative;
}

/* Gift page title redesign */
.gift-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gift-title {
  margin: 0;
  font-size: 34px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #e1e3e6;
  line-height: 1;
}

.gift-name {
  font-size: 16px;
  font-weight: 500;
  color: #4762db;
  margin-top: 4px;
  opacity: 0.9;
}

/* Meta info horizontal pills */
.gift-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 25px;
}

.gift-meta-item {
  background: #10141e;
  border: 1px solid #1d2436;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #e1e3e6;
  letter-spacing: 0.5px;
}

.gift-meta-item span {
  color: #4762db;
  margin-right: 6px;
}

/* Open gift button */
.open-gift {
  background: linear-gradient(90deg, #182236, #243146, #182236);
  background-size: 200% 200%;
  animation: btnPulse 6s ease infinite;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 16px 32px;
  border: 1px solid #2e3d55;
  border-radius: 14px;
  margin: 25px auto 15px;
  display: block;
  width: 100%;
  max-width: 380px;
  text-transform: uppercase;
  font-size: 14px;
  transition: 0.35s;
}

.open-gift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(71, 98, 219, 0.25);
  border-color: #4762db;
}

@keyframes btnPulse {
  0% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}
.gift-content-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin: 10px 0 25px;
  letter-spacing: 1px;
  color: #e1e3e6;
}

.gifts-main-block > a[class^=icon] {
  width: 30px;
  height: 30px;
  display: block;
  position: absolute;
  opacity: 0.2;
  top: 37px;
  cursor: pointer;
}

.gifts-main-block .roulette > #sound-point {
  width: 30px;
  height: 30px;
  display: block;
  position: absolute;
  opacity: 0.2;
  right: 2px;
  top: 7px;
  cursor: pointer;
}

.gifts-main-block .roulette > #sound-point.sound-on {
  background-image: url(../img/icon-sound-on.png);
}

.gifts-main-block .roulette > #sound-point.sound-off {
  background-image: url(../img/icon-sound-off.png);
}

.gifts-main-block .roulette > #sound-point:hover {
  opacity: 0.5;
}

.gifts-main-block .roulette .roulette-slider {
  padding: 33px 30px 23px;
  margin-bottom: 25px;
  position: relative;
  background-position: 50% 50%;
  height: 328px;
}

.gifts-main-block .roulette .roulette-slider .r-left {
  position: absolute;
  left: -24px;
  top: -8px;
  bottom: 0;
  display: block;
  background: url(../img/r-left.png) no-repeat;
  width: 73px;
  height: 394px;
}

.gifts-main-block .roulette .roulette-slider .r-right {
  position: absolute;
  right: -37px;
  top: 3px;
  bottom: 0;
  display: block;
  background: url(../img/r-right.png) no-repeat;
  width: 83px;
  height: 379px;
}

.gifts-main-block .roulette .roulette-slider .r-side {
  left: 49px;
  width: calc(50% - 47px);
  top: 4px;
  bottom: -45px;
  position: absolute;
  background: url(../img/r-side.png) repeat-x;
}

.gifts-main-block .roulette .roulette-slider .r-side2 {
  right: 46px;
  width: calc(50% - 48px);
  top: 4px;
  bottom: -45px;
  position: absolute;
  background: url(../img/r-side.png) repeat-x;
}

.gifts-main-block .roulette .roulette-slider .top-arr {
  -ms-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  position: absolute;
  top: 32px;
  bottom: 0px;
  display: block;
  width: 4px;
  height: 273px;
  background: radial-gradient(circle, #6080ff 0%, #131821 100%);
  border-radius: 15px;
  z-index: 200;
  filter: blur(2px);
  left: 50%;
}

.gifts-main-block .roulette .roulette-slider .bottom-arr {
  /* background: url(../img/bottom-arr.png) 0 0 no-repeat; */
  width: 132px;
  height: 28px;
  position: absolute;
  left: 50%;
  bottom: -4px;
  -ms-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
}

.gifts-main-block .roulette .roulette-slider .roulette-area {
  overflow: hidden;
  width: calc(100% + 36px);
  height: 100%;
  margin-left: -16px;
  background: rgba(78, 78, 78, 0.2);
  border-radius: 16px;
  background-image: url(../templates/solution/img/top_users.png);
}

.gifts-main-block .roulette .roulette-slider .roulette-area #roulette {
  height: 210px;
  width: 190px;
  top: 30px;
  position: relative;
  margin: 0 auto;
}

.gifts-main-block .roulette .roulette-slider .roulette-area #roulette .roulette-inner {
  transition: 0s linear;
  position: relative;
  top: 0;
  white-space: nowrap;
  height: 100%;
  width: 100%;
}

.gifts-main-block .roulette .roulette-slider .roulette-area #roulette .roulette-inner .subject-block {
  box-shadow: none !important;
}

#gifts > p, #gifts_not_open > p {
  color: #64ca00;
  text-shadow: 0 2px 4px rgba(133, 214, 0, 0.25);
  font-size: 20px;
  margin-left: 15px;
  font-weight: bold;
}

#gifts .gift-block, #gifts_not_open .gift-block {
  position: relative;
  display: block;
  transition: 0.6s;
  background: rgba(110, 83, 61, 0.168627451);
  transition: 0.6s all;
  border-radius: 16px;
  background: #131821;
  border: solid 1px #1d2436;
  color: #4762db;
}

#gifts .gift-block:hover, #gifts_not_open .gift-block:hover {
  background: #10141e;
  transition: 0.6s;
  border-radius: 15px;
}

/* Legacy styles - overridden by .giftblock styles below */
#gifts .gift-block div.gift-image-block, #gifts_not_open .gift-block div.gift-image-block {
  height: 220px;
  line-height: 220px;
  text-align: center;
}

#gifts .gift-block div.gift-image-block img, #gifts_not_open .gift-block div.gift-image-block img {
  max-width: 100%;
  width: 90%;
  transition: 0.6s;
  position: relative;
}

#subjects, #roulette, #prize_area {
  text-align: center;
}

#subjects .modal-dialog, #roulette .modal-dialog, #prize_area .modal-dialog {
  text-align: left;
}

#subjects .subject-block, #roulette .subject-block, #prize_area .subject-block {
  overflow: hidden;
  display: inline-block;
  position: relative;
  height: 180px;
  width: 180px;
  border-radius: 25px;
  margin: 5px;
}

#subjects .subject-block .b-top, #subjects .subject-block .b-bottom, #subjects .subject-block .b-left, #subjects .subject-block .b-right, #roulette .subject-block .b-top, #roulette .subject-block .b-bottom, #roulette .subject-block .b-left, #roulette .subject-block .b-right, #prize_area .subject-block .b-top, #prize_area .subject-block .b-bottom, #prize_area .subject-block .b-left, #prize_area .subject-block .b-right {
  position: absolute;
  display: block;
}

#subjects .subject-block .b-top, #roulette .subject-block .b-top, #prize_area .subject-block .b-top {
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

#subjects .subject-block .b-bottom, #roulette .subject-block .b-bottom, #prize_area .subject-block .b-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
}

#subjects .subject-block .b-left, #roulette .subject-block .b-left, #prize_area .subject-block .b-left {
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
}

#subjects .subject-block .b-right, #roulette .subject-block .b-right, #prize_area .subject-block .b-right {
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
}

#subjects .subject-block.orange, #roulette .subject-block.orange, #prize_area .subject-block.orange {
  background: linear-gradient(29deg, rgb(255, 167, 93) 0%, rgb(183, 114, 56) 96%);
}

#subjects .subject-block.orange .subject > span:nth-child(1), #roulette .subject-block.orange .subject > span:nth-child(1), #prize_area .subject-block.orange .subject > span:nth-child(1) {
  color: #f7e3a0;
}

#subjects .subject-block.red, #roulette .subject-block.red, #prize_area .subject-block.red {
  background: linear-gradient(29deg, rgba(255, 93, 93, 0.83) 0%, rgb(136, 39, 41) 96%);
}

#subjects .subject-block.red .subject > span:nth-child(1), #roulette .subject-block.red .subject > span:nth-child(1), #prize_area .subject-block.red .subject > span:nth-child(1) {
  color: #fbabb8;
}

#subjects .subject-block.purple, #roulette .subject-block.purple, #prize_area .subject-block.purple {
  background: linear-gradient(29deg, rgba(176, 93, 255, 0.83) 0%, rgb(103, 51, 154) 96%);
}

#subjects .subject-block.purple .subject > span:nth-child(1), #roulette .subject-block.purple .subject > span:nth-child(1), #prize_area .subject-block.purple .subject > span:nth-child(1) {
  color: #fb9ed5;
}

#subjects .subject-block.blue, #roulette .subject-block.blue, #prize_area .subject-block.blue {
  background: linear-gradient(29deg, rgba(22, 145, 237, 0.83) 0%, rgb(4, 85, 155) 96%);
}

#subjects .subject-block.blue > .b-top, #roulette .subject-block.blue > .b-top, #prize_area .subject-block.blue > .b-top {
  background: 0;
}

#subjects .subject-block.blue > .b-bottom, #roulette .subject-block.blue > .b-bottom, #prize_area .subject-block.blue > .b-bottom {
  background: 0;
}

#subjects .subject-block.blue > .b-left, #roulette .subject-block.blue > .b-left, #prize_area .subject-block.blue > .b-left {
  background: 0;
}

#subjects .subject-block.blue > .b-right, #roulette .subject-block.blue > .b-right, #prize_area .subject-block.blue > .b-right {
  background: 0;
}

#subjects .subject-block.blue .subject > span:nth-child(1), #roulette .subject-block.blue .subject > span:nth-child(1), #prize_area .subject-block.blue .subject > span:nth-child(1) {
  color: #b2a9fa;
}

#subjects .subject-block.military, #roulette .subject-block.military, #prize_area .subject-block.military {
  background: linear-gradient(29deg, rgb(40, 73, 145) 0%, rgb(19, 44, 98) 96%);
}

#subjects .subject-block.military .subject > span:nth-child(1), #roulette .subject-block.military .subject > span:nth-child(1), #prize_area .subject-block.military .subject > span:nth-child(1) {
  color: #9ebffb;
}

#subjects .subject-block > .subject-services, #roulette .subject-block > .subject-services, #prize_area .subject-block > .subject-services {
  height: 200px;
  width: 100%;
  display: table;
  padding: 8px;
  padding-bottom: 23px;
}

#subjects .subject-block > .subject-services .subject-fix, #roulette .subject-block > .subject-services .subject-fix, #prize_area .subject-block > .subject-services .subject-fix {
  display: table-cell;
  height: auto;
  text-align: center;
  vertical-align: middle;
}

#subjects .subject-block > .subject-services .subject-fix .subject span, #roulette .subject-block > .subject-services .subject-fix .subject span, #prize_area .subject-block > .subject-services .subject-fix .subject span {
  width: 164px;
  display: block;
}

#subjects .subject-block > .subject-services .subject-fix .subject span:nth-child(1), #roulette .subject-block > .subject-services .subject-fix .subject span:nth-child(1), #prize_area .subject-block > .subject-services .subject-fix .subject span:nth-child(1) {
  font-size: 14px;
  text-overflow: ellipsis;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
}

#subjects .subject-block > .subject-services .subject-fix .subject span:nth-child(2), #subjects .subject-block > .subject-services .subject-fix .subject span:nth-child(3), #roulette .subject-block > .subject-services .subject-fix .subject span:nth-child(2), #roulette .subject-block > .subject-services .subject-fix .subject span:nth-child(3), #prize_area .subject-block > .subject-services .subject-fix .subject span:nth-child(2), #prize_area .subject-block > .subject-services .subject-fix .subject span:nth-child(3) {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6392156863);
}

#subjects .subject-block > .subject-services .subject-fix .subject span:nth-child(3), #roulette .subject-block > .subject-services .subject-fix .subject span:nth-child(3), #prize_area .subject-block > .subject-services .subject-fix .subject span:nth-child(3) {
  margin-bottom: 5px;
}

#prize .modal-content {
  border: 0;
  box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

#prize .modal-content h4 {
  text-align: center;
  color: #e1e3e6;
  font-size: 35px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: bold;
}

#prize .modal-content #prize_area {
  text-align: center;
  padding: 50px 0;
}

#prize .modal-content #prize_area .subject-block {
  -webkit-transform: scale(1.25);
  transform: scale(1.25);
}

#prize .modal-content #prize_area .subject-block.orange {
  box-shadow: 0 0 23px -4px #f7e3a0;
}

#prize .modal-content #prize_area .subject-block.red {
  box-shadow: 0 0 23px -4px #fbabb8;
}

#prize .modal-content #prize_area .subject-block.purple {
  box-shadow: 0 0 23px -4px #fb9ed5;
}

#prize .modal-content #prize_area .subject-block.blue {
  box-shadow: 0 0 23px -4px #b2a9fa;
}

#prize .modal-content #prize_area .subject-block.military {
  box-shadow: 0 0 23px -4px #9ebffb;
}

#prize .modal-content .close {
  color: #FFFFFF;
}

#prize .modal-content p {
  font-size: 14px;
  color: #939393;
  text-align: center;
}

.modal-backdrop-blur {
  -webkit-filter: blur(5px);
  -moz-filter: blur(5px);
  -o-filter: blur(5px);
  -ms-filter: blur(5px);
  filter: blur(5px);
}

#my_gifts_area .opened-gift {
  width: 100%;
  /*border-bottom: 1px solid rgb(80 134 255 / 25%);*/
  padding: 10px 0;
}

#my_gifts_area .opened-gift .gift-img {
  width: 100px;
  float: left;
}

#my_gifts_area .opened-gift .gift-img img {
  width: 85%;
}

#my_gifts_area .opened-gift .gift-info {
  width: calc(100% - 110px);
  float: right;
}

#my_gifts_area .opened-gift .gift-info h3 {
  font-size: 17px;
  margin: 0;
}

#my_gifts_area .opened-gift .gift-info .subject {
  display: block;
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 5px;
}

#my_gifts_area .opened-gift:last-child {
  border-bottom: 0;
}

.gift-banner {
position: relative;
    width: 100%;
    border-radius: 20px;
    background: #131821;
    background-size: 400% 400%;
    border: 1px solid #1d2436;
    animation: u 15s 
ease-in-out infinite;
    margin-bottom: 15px;
    padding: 0;
}

.gift-banner a {
display: block;
    width: 100%;
    height: 100%;
    white-space: normal;
}

.gift-banner h3 {
  font-size: 24px;
  font-weight: 700;
  color: #e1e3e6;
  margin: 0;
}

@keyframes u {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
#gifts .gift-block div.gift-image-block img:hover, #gifts_not_open .gift-block div.gift-image-block img {
  max-width: 95%;
  width: 70%;
  filter: drop-shadow(2px 14px 6px black);
}

.countcss {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  width: 30px !important;
  border-radius: 20% !important;
  padding: 0px 0px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  justify-content: center !important;
  border: solid 1px #363738 !important;
  background: rgba(34, 34, 34, 0) !important;
}

.casenblock {
  padding: 15px;
  color: #fff;
  display: flex;
  text-align: center;
  gap: 3px;
  margin-left: -2px;
  margin-bottom: 3px;
  width: auto;
  background: linear-gradient(360deg, #10141e 0%, #0f141e 55%);
  border: 1px solid #1d2436;
  border-radius: 13px;
  transition: 0.2s all;
  flex-direction: column;
}

.opencases {
  display: flex;
  position: absolute;
  letter-spacing: 1px;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  background: rgba(19, 24, 33, 0.8);
  border: 1px solid #1d2436;
  align-items: center;
  font-size: 10px;
  color: rgba(255, 133, 133, 0.93);
  font-weight: 600;
  border-radius: 10px;
  right: 85px;
  top: 34px;
}

#opentex {
  color: #4762db;
  text-decoration: none;
  transition: 0.5s;
}

#opentex:hover {
  color: #4762db !important;
  text-decoration: underline;
  transition: 0.5s;
}

.casescost {
  display: flex;
  position: absolute;
  letter-spacing: 1px;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  background: rgba(16, 20, 29, 0.42);
  align-items: center;
  font-size: 13px;
  color: rgb(71, 98, 219);
  font-weight: 600;
  border-radius: 15px 15px 0px 0px;
  animation-name: blink;
  animation-timing-function: linear;
  animation-duration: 1.6s;
  animation-iteration-count: infinite;
  top: 0px;
  left: 0px;
  border: solid 1px #1d2436;
  backdrop-filter: blur(3vh);
  width: 100%;
}

.casenblock i {
  color: #dfdfdf;
  transition: 0.2s;
  background: #656565;
  opacity: 0.7;
  width: 21px;
  border: none;
  height: 21px;
  top: -12px;
  padding: 0px;
  right: 8px;
  margin-bottom: -16px;
  position: relative;
  font-size: 11px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.casenblock:hover i {
  color: #ffffff;
  opacity: 1;
  background: #6d6d6d;
  transform: rotate(270deg);
}

@media (max-width: 991.99px) {
  .opencases {
    display: none;
    position: absolute;
    letter-spacing: 1px;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    background: rgba(255, 140, 140, 0.08);
    align-items: center;
    font-size: 10px;
    color: rgba(255, 133, 133, 0.93);
    font-weight: 600;
    border-radius: 10px;
    right: 85px;
    top: 34px;
  }
}

/* Main page gifts grid */
#gifts.row, #gifts_not_open.row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 20px 0;
}

#gifts .col-lg-4, #gifts_not_open .col-lg-4 {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.giftblock {
  height: 100%;
}

.giftblock .flex_user_visits {
  height: 100%;
}

.giftblock .gift-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, #1e2737 0%, #141a24 70%);
  border: 1px solid #263043;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.4);
}

.giftblock .gift-block:hover {
  transform: translateY(-6px);
  border-color: #4762db;
  box-shadow: 0 10px 28px -6px rgba(71, 98, 219, 0.45);
}

.giftblock .gift-block .gift-image-block {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #101722;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px #1f2835, 0 6px 14px -6px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.giftblock .gift-block .gift-image-block img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.giftblock .gift-block:hover .gift-image-block img {
  transform: scale(1.05);
}

.giftblock .gift-block span {
  color: #e1e3e6;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  display: block;
  line-height: 1.3;
  position: static !important;
  height: auto !important;
  width: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
}

.giftblock .gift-block span:nth-child(3) {
  background: linear-gradient(90deg, #4762db 0%, #5872ed 100%);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  margin-top: auto;
  margin-bottom: 0;
}

.giftscost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(71, 98, 219, 0.15);
  color: #4762db;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  margin-top: auto;
  border: 1px solid rgba(71, 98, 219, 0.35);
  backdrop-filter: blur(6px);
}

.giftscost i {
  position: static !important;
  margin: 0 !important;
  top: auto !important;
  left: auto !important;
}

/* Gifts Grid Styles */
.gifts-grid-container {
  width: 100%;
  margin: 20px 0;
  padding: 20px;
  background: #0d1117;
  border-radius: 15px;
}

/* Subjects grid in gift page */
#subjects.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 10px 0 30px;
}

#subjects.subjects-grid .subject-block {
  margin: 0;
  height: auto;
  width: 100%;
  max-width: 190px;
  padding: 14px 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #1e2837 0%, #141a24 100%);
  border: 1px solid #263043;
  border-radius: 18px;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.6);
}

#subjects.subjects-grid .subject-block .subject-services {
  height: auto;
  width: 100%;
  display: flex;
  padding: 0;
}

#subjects.subjects-grid .subject-block .subject-fix {
  width: 100%;
}

#subjects.subjects-grid .subject-block .subject span {
  width: 100%;
  font-size: 12px;
  line-height: 1.3;
}

#subjects.subjects-grid .subject-block .subject span:nth-child(1) {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

#subjects.subjects-grid .subject-block.orange {
  border-color: #e4ae39;
}

#subjects.subjects-grid .subject-block.red {
  border-color: #eb4b4b;
}

#subjects.subjects-grid .subject-block.purple {
  border-color: #8847ff;
}

#subjects.subjects-grid .subject-block.blue {
  border-color: #5e98d9;
}

#subjects.subjects-grid .subject-block.military {
  border-color: #6c757d;
}

.gifts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 767.98px) {
  .gifts-grid .gifts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    grid-auto-rows: 90px !important;
    padding: 4px !important;
  }
  .gifts-grid .gift-item {
    padding: 2px !important;
    border-radius: 10px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.3) !important;
  }
  .gifts-grid .gift-item-image {
    border-radius: 7px !important;
  }
  .gifts-grid .gift-item-image img {
    border-radius: 7px !important;
  }
  .gifts-grid .giftblock .gift-block {
    padding: 10px !important;
    border-radius: 10px !important;
  }
  .gifts-grid .giftblock .gift-block .gift-image-block {
    height: 90px !important;
    margin-bottom: 8px !important;
    border-radius: 7px !important;
  }
  .gifts-grid .giftblock .gift-block span {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }
  .gifts-grid .giftblock .gift-block span:nth-child(3) {
    font-size: 14px !important;
    padding: 6px 8px !important;
    border-radius: 7px !important;
  }
  .gifts-grid .giftscost {
    font-size: 12px !important;
    padding: 6px 8px !important;
    border-radius: 7px !important;
    gap: 4px !important;
  }
  .gifts-grid .gift-item[data-glow] .gift-item-image {
    box-shadow: 0 0 8px 2px rgba(71, 98, 219, 0.25) !important;
    animation: none !important;
  }
}
.gifts-grid {
  gap: 14px;
  max-width: 100%;
  margin: 0 auto;
  grid-auto-rows: 120px;
}

.gift-item {
  background: radial-gradient(circle at 30% 30%, #1e2737 0%, #141a24 70%);
  border: 1px solid #263043;
  border-radius: 14px;
  padding: 4px;
  cursor: pointer;
  transition: 0.35s;
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.4);
}

.gift-item:hover {
  transform: translateY(-6px);
  border-color: #4762db;
  box-shadow: 0 10px 28px -6px rgba(71, 98, 219, 0.45);
}

.gift-item.selected {
  border-color: #ffd146;
  background: linear-gradient(135deg, #2b210d 0%, #18130a 100%);
  box-shadow: 0 0 34px -4px rgba(255, 209, 70, 0.55);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
  }
}
.gift-item-image {
  width: 100%;
  height: 100%;
  background: #101722;
  border-radius: 10px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px #1f2835, 0 4px 10px -6px rgba(0, 0, 0, 0.6);
}

.gift-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

@keyframes neonGlowRed {
  0%, 100% {
    box-shadow: inset 0 0 0 1px #1f2835, 0 0 8px rgba(255, 50, 50, 0.3), 0 0 16px rgba(255, 50, 50, 0.4), 0 0 28px rgba(255, 50, 50, 0.3), 0 4px 10px -6px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: inset 0 0 0 1px #1f2835, 0 0 15px rgba(255, 50, 50, 0.6), 0 0 30px rgba(255, 50, 50, 0.7), 0 0 45px rgba(255, 50, 50, 0.5), 0 4px 10px -6px rgba(0, 0, 0, 0.6);
  }
}
@keyframes neonGlowYellow {
  0%, 100% {
    box-shadow: inset 0 0 0 1px #1f2835, 0 0 8px rgba(255, 220, 50, 0.3), 0 0 16px rgba(255, 220, 50, 0.4), 0 0 28px rgba(255, 220, 50, 0.3), 0 4px 10px -6px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: inset 0 0 0 1px #1f2835, 0 0 15px rgba(255, 220, 50, 0.6), 0 0 30px rgba(255, 220, 50, 0.7), 0 0 45px rgba(255, 220, 50, 0.5), 0 4px 10px -6px rgba(0, 0, 0, 0.6);
  }
}
@keyframes neonGlowGreen {
  0%, 100% {
    box-shadow: inset 0 0 0 1px #1f2835, 0 0 8px rgba(50, 255, 100, 0.3), 0 0 16px rgba(50, 255, 100, 0.4), 0 0 28px rgba(50, 255, 100, 0.3), 0 4px 10px -6px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: inset 0 0 0 1px #1f2835, 0 0 15px rgba(50, 255, 100, 0.6), 0 0 30px rgba(50, 255, 100, 0.7), 0 0 45px rgba(50, 255, 100, 0.5), 0 4px 10px -6px rgba(0, 0, 0, 0.6);
  }
}
@keyframes neonGlowBlue {
  0%, 100% {
    box-shadow: inset 0 0 0 1px #1f2835, 0 0 8px rgba(50, 130, 255, 0.3), 0 0 16px rgba(50, 130, 255, 0.4), 0 0 28px rgba(50, 130, 255, 0.3), 0 4px 10px -6px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: inset 0 0 0 1px #1f2835, 0 0 15px rgba(50, 130, 255, 0.6), 0 0 30px rgba(50, 130, 255, 0.7), 0 0 45px rgba(50, 130, 255, 0.5), 0 4px 10px -6px rgba(0, 0, 0, 0.6);
  }
}
@keyframes neonGlowPink {
  0%, 100% {
    box-shadow: inset 0 0 0 1px #1f2835, 0 0 8px rgba(255, 100, 200, 0.3), 0 0 16px rgba(255, 100, 200, 0.4), 0 0 28px rgba(255, 100, 200, 0.3), 0 4px 10px -6px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: inset 0 0 0 1px #1f2835, 0 0 15px rgba(255, 100, 200, 0.6), 0 0 30px rgba(255, 100, 200, 0.7), 0 0 45px rgba(255, 100, 200, 0.5), 0 4px 10px -6px rgba(0, 0, 0, 0.6);
  }
}
.gift-item[data-glow="1"] .gift-item-image {
  animation: neonGlowRed 2s ease-in-out infinite;
}

.gift-item[data-glow="2"] .gift-item-image {
  animation: neonGlowYellow 2.3s ease-in-out infinite;
}

.gift-item[data-glow="3"] .gift-item-image {
  animation: neonGlowGreen 1.8s ease-in-out infinite;
}

.gift-item[data-glow="4"] .gift-item-image {
  animation: neonGlowBlue 2.1s ease-in-out infinite;
}

.gift-item[data-glow="5"] .gift-item-image {
  animation: neonGlowPink 1.9s ease-in-out infinite;
}

.gift-item-name {
  display: none;
}

.gift-item-chance {
  display: none;
}

.gift-item.filler {
  cursor: default;
}

.gift-item.filler:hover {
  transform: none;
  border-color: #263043;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.4);
}

.gift-item.filler .gift-item-chance {
  display: none;
}

/* Новый модал подтверждения открытия — светлая тема, изолированные стили */
#confirm_paid_open_modal .confirm-open-modal {
	width: 100%;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 18px 56px rgba(0,0,0,0.22);
	border: 1px solid rgba(0,0,0,0.06);
	overflow: hidden;
}
#confirm_paid_open_modal .confirm-open-header {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 24px 0 24px;
	position: relative;
}
#confirm_paid_open_modal .confirm-open-title {
	margin: 0 36px;
	font-size: 30px;
	line-height: 34px;
	font-weight: 900;
	letter-spacing: 0.3px;
	color: #111827;
	text-transform: uppercase;
	text-align: center;
}
#confirm_paid_open_modal .confirm-open-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: #6b7280;
	font-size: 24px;
	line-height: 32px;
	cursor: pointer;
}
#confirm_paid_open_modal .confirm-open-close:hover { color: #111827; }
#confirm_paid_open_modal .confirm-open-body {
	padding: 16px 28px 10px 28px;
	text-align: center;
}
#confirm_paid_open_modal .confirm-open-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: 20px;
	background: rgba(51,102,255,0.12);
	color: #3366ff;
	font-size: 40px;
	margin: 8px auto 14px auto;
	filter: drop-shadow(0 6px 16px rgba(51,102,255,0.2));
}
#confirm_paid_open_modal .confirm-open-question {
	font-size: 20px;
	font-weight: 800;
	color: #111827;
	margin-bottom: 8px;
}
#confirm_paid_open_modal .confirm-open-note {
	font-size: 14px;
	color: #6b7280;
}
#confirm_paid_open_modal .confirm-open-price {
	color: #3366ff;
	font-weight: 800;
}
#confirm_paid_open_modal .confirm-open-footer {
	display: flex;
	gap: 12px;
	justify-content: center;
	padding: 12px 28px 24px 28px;
}
#confirm_paid_open_modal .confirm-open-btn {
	min-width: 148px;
	height: 42px;
	padding: 0 18px;
	border-radius: 12px;
	font-weight: 800;
	line-height: 42px;
	border: 1px solid transparent;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
#confirm_paid_open_modal .confirm-open-cancel {
	background: #eef2f7;
	border-color: rgba(0,0,0,0.12);
	color: #111827;
}
#confirm_paid_open_modal .confirm-open-apply {
	background: #4c6bff;
	border-color: #4c6bff;
	color: #ffffff;
	box-shadow: 0 10px 24px rgba(76,107,255,0.28);
}
#confirm_paid_open_modal .confirm-open-apply:hover { filter: brightness(1.06); }
#confirm_paid_open_modal .confirm-open-btn:disabled { opacity: 1; filter: none; cursor: not-allowed; }
.gifts-main-block > a[class^="icon"], .gifts-main-block .main-gift, .gifts-main-block .roulette > #sound-point, .gifts-main-block .roulette .roulette-slider, #prize .modal-content {
	 background-size: 100% 100%;
}
 .gifts-main-block {
	 width: 100%;
	 background: #2d0c2f url(../img/block-bg.jpg) no-repeat;
	 border-radius: 15px;
	 padding: 30px;
	 margin-bottom: 30px;
	 height: auto;
	 overflow: hidden;
	 position: relative;
}
/* plain variant */
.gifts-main-block.plain-bg{
	background: var(--bloki);
    color: #000;
    background-image: none;
}
.gifts-main-block.plain-bg h2{color:var(--glavnyy-tekst);}
.gifts-main-block.plain-bg > a[class^="icon"]{opacity:0.8;filter:brightness(0.2);}
.gifts-main-block.plain-bg > a[class^="icon"]:hover{opacity:1;}
 .gifts-main-block > a[class^="icon"] {
	 width: 30px;
	 height: 30px;
	 display: block;
	 position: absolute;
	 opacity: 0.2;
	 top: 37px;
	 cursor: pointer;
}
 .gifts-main-block > a[class^="icon"].icon-open-gifts {
	 background-image: url(../img/icon-key.png);
	 right: 50px;
}
 .gifts-main-block > a[class^="icon"].icon-back-to-gifts {
	 background-image: url(../img/icon-back.png);
	 left: 50px;
}
 .gifts-main-block > a[class^="icon"]:hover {
	 opacity: .5;
}
 .gifts-main-block h2 {
	 min-height: 47px;
	 padding-top: 5px;
	 text-transform: uppergift;
	 font-size: 28px;
	 color: white;
	 text-align: center;
	 margin-bottom: 50px;
	 font-weight: bold;
}
 @media (min-width: 992px) {
	 .gifts-main-block h2 {
		 background: url(../img/title-bg.png) center bottom no-repeat;
	}
}
 @media (max-width: 991.99px) {
	 .gifts-main-block h2 {
		 border-bottom: 1px dashed #ff4800;
	}
}
 .gifts-main-block .info-block {
	 position: relative;
	 background: url(../img/info-block-bg.jpg);
	 padding: 20px;
	 margin-bottom: 10px;
	 border-radius: 4px;
	 box-shadow: 0 0 96px -15px #c64f47;
}
 .gifts-main-block .info-block > h3 {
	 color: #64ca00;
	 text-shadow: 0 2px 4px rgba(133, 214, 0, 0.25);
}
 .gifts-main-block .info-block > ul {
	 margin-left: 15px;
	 margin-bottom: 0;
	 color: #FFFFFF;
}
 .gifts-main-block .info-block > p {
	 color: #FFFFFF;
}
 .gifts-main-block .main-gift {
	 background: url(../img/gift-bg.png);
	 min-height: 253px;
	 line-height: 253px;
	 text-align: center;
	 max-width: 600px !important;
	 width: 100%;
	 display: block;
	 margin: 0 auto 20px;
}
 .gifts-main-block .main-gift img {
	 max-width: 300px;
}
 @media (max-width: 991.99px) {
	 .gifts-main-block .main-gift {
		 min-height: 150px;
		 line-height: 150px;
		 background: rgba(0, 0, 0, 0);
	}
	 .gifts-main-block .main-gift img {
		 max-width: 100%;
	}
	 .gifts-main-block button.open-gift {
		 font-size: 16px;
	}
}
 .gifts-main-block button.open-gift {
	 padding: 0 15px;
	 height: 60px;
	 line-height: 60px;
	 background-image: linear-gradient(135deg, #ff7900 0%, #ff001e 46%, #d6005a 100%);
	 box-shadow: 0 2px 4px 0 rgba(254, 0, 32, 0.35);
	 border-radius: 3px;
	 text-transform: uppergift;
	 border: 0;
	 color: #FFFFFF;
	 font-weight: bold;
	 font-size: 21px;
	 margin: 30px auto;
	 display: block;
	 cursor: pointer;
}
 .gifts-main-block button.open-gift:hover {
	 background-image: linear-gradient(-135deg, #ff7900 0%, #ff001e 46%, #d6005a 100%);
}
 .gifts-main-block button.open-gift[disabled] {
	 background-image: linear-gradient(135deg, rgba(255, 121, 0, 0.53) 0%, rgba(255, 0, 30, 0.47) 46%, rgba(214, 0, 90, 0.49) 100%) !important;
	 opacity: 0.5;
}
 @media (max-width: 991.99px) {
	 .gifts-main-block button.open-gift {
		 font-size: 16px;
	}
}
 .gifts-main-block .roulette {
	 padding: 27px 27px 36px;
	 position: relative;
	/*background: url(../img/roulette-bg.png) repeat;
	*/
	 border-radius: 26px;
	 overflow: hidden;
	 width: 100%;
	 height: 403px;
	 max-width: 650px !important;
	 margin: 0 auto;
}
 .gifts-main-block .roulette > #sound-point {
	 width: 30px;
	 height: 30px;
	 display: block;
	 position: absolute;
	 opacity: 0.2;
	 right: 2px;
	 top: 7px;
	 cursor: pointer;
}
 .gifts-main-block .roulette > #sound-point.sound-on {
	 background-image: url(../img/icon-sound-on.png);
}
 .gifts-main-block .roulette > #sound-point.sound-off {
	 background-image: url(../img/icon-sound-off.png);
}
 .gifts-main-block .roulette > #sound-point:hover {
	 opacity: .5;
}
 .gifts-main-block .roulette .roulette-slider {
	 padding: 33px 30px 23px;
	 margin-bottom: 25px;
	 position: relative;
	 background-position: 50% 50%;
	 height: 328px;
}
 .gifts-main-block .roulette .roulette-slider .r-left {
	 position: absolute;
	 left: -24px;
	 top: -8px;
	 bottom: 0;
	 display: block;
	 background: url(../img/r-left.png) no-repeat;
	 width: 73px;
	 height: 394px;
}
 .gifts-main-block .roulette .roulette-slider .r-right {
	 position: absolute;
	 right: -37px;
	 top: 3px;
	 bottom: 0;
	 display: block;
	 background: url(../img/r-right.png) no-repeat;
	 width: 83px;
	 height: 379px;
}
 .gifts-main-block .roulette .roulette-slider .r-side {
	 left: 49px;
	 width: calc(50% - 47px);
	 top: 4px;
	 bottom: -45px;
	 position: absolute;
	 background: url(../img/r-side.png) repeat-x;
}
 .gifts-main-block .roulette .roulette-slider .r-side2 {
	 right: 46px;
	 width: calc(50% - 48px);
	 top: 4px;
	 bottom: -45px;
	 position: absolute;
	 background: url(../img/r-side.png) repeat-x;
}
 .gifts-main-block .roulette .roulette-slider .top-arr {
	 background: url(../img/top-arr.png) no-repeat;
	 width: 132px;
	 height: 28px;
	 position: absolute;
	 left: 50%;
	 top: 4px;
	 -ms-transform: translate(-50%, 0);
	 transform: translate(-50%, 0);
}
 .gifts-main-block .roulette .roulette-slider .bottom-arr {
	 background: url(../img/bottom-arr.png) 0 0 no-repeat;
	 width: 132px;
	 height: 28px;
	 position: absolute;
	 left: 50%;
	 bottom: -4px;
	 -ms-transform: translate(-50%, 0);
	 transform: translate(-50%, 0);
}
 .gifts-main-block .roulette .roulette-slider .roulette-area {
	 overflow: hidden;
	 width: calc(100% + 36px);
	 height: 100%;
	 margin-left: -16px;
}
 .gifts-main-block .roulette .roulette-slider .roulette-area #roulette {
	 height: 210px;
	 width: 190px;
	 top: 30px;
	 position: relative;
	 margin: 0 auto;
}
 .gifts-main-block .roulette .roulette-slider .roulette-area #roulette .roulette-inner {
	 transition: 0s linear;
	 position: relative;
	 top: 0;
	 white-space: nowrap;
	 height: 100%;
	 width: 100%;
}
 .gifts-main-block .roulette .roulette-slider .roulette-area #roulette .roulette-inner .subject-block {
	 box-shadow: none !important;
}
 #gifts > p, #gifts_not_open > p {
	 color: #64ca00;
	 text-shadow: 0 2px 4px rgba(133, 214, 0, 0.25);
	 font-size: 20px;
	 margin-left: 15px;
	 font-weight: bold;
}
 #gifts .gift-block, #gifts_not_open .gift-block {
    box-shadow: var(--box-shadow);
    background: var(--cvet-vnutri-bloka);
}
 #gifts .gift-block:hover, #gifts_not_open .gift-block:hover {
	 box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	 transform: translateY(-5px);
}
 #gifts .gift-block span, #gifts_not_open .gift-block span {
	 display: block;
	 color: #FFFFFF;
	 height: 40px;
	 position: absolute;
	 bottom: 0;
	 line-height: 40px;
	 border-radius: 6px;
}
 #gifts .gift-block span:nth-child(2), #gifts_not_open .gift-block span:nth-child(2) {
width: 100%;
    background-image: var(--akcenti);
    left: 0;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    color: var(--cvet-na-akcente);
    font-size: 14px;
}
 #gifts .gift-block span:nth-child(3), #gifts .gift-block span:nth-child(4), #gifts_not_open .gift-block span:nth-child(3), #gifts_not_open .gift-block span:nth-child(4) {
	 width: 80px;
	 background-image: linear-gradient(-135deg, rgba(255, 0, 0, 0.5) 0%, rgba(255, 0, 30, 0.45) 46%, rgba(214, 0, 90, 0.45) 100%);
	 right: 0;
	 font-weight: bold;
	 text-align: center;
}
 #gifts .gift-block div.gift-image-block, #gifts_not_open .gift-block div.gift-image-block {
	 height: 220px;
	 line-height: 220px;
	 text-align: center;
}
 #gifts .gift-block div.gift-image-block img, #gifts_not_open .gift-block div.gift-image-block img {
	 max-width: 100%;
}
 #subjects, #roulette, #prize_area {
	 text-align: center;
}
 #subjects .modal-dialog, #roulette .modal-dialog, #prize_area .modal-dialog {
	 text-align: left;
}
 #subjects .subject-block, #roulette .subject-block, #prize_area .subject-block {
	 overflow: hidden;
	 display: inline-block;
	 position: relative;
	 height: 200px;
	 width: 180px;
	 margin: 5px;
	 box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}
 #subjects .subject-block .b-top, #subjects .subject-block .b-bottom, #subjects .subject-block .b-left, #subjects .subject-block .b-right, #roulette .subject-block .b-top, #roulette .subject-block .b-bottom, #roulette .subject-block .b-left, #roulette .subject-block .b-right, #prize_area .subject-block .b-top, #prize_area .subject-block .b-bottom, #prize_area .subject-block .b-left, #prize_area .subject-block .b-right {
	 position: absolute;
	 display: block;
}
 #subjects .subject-block .b-top, #roulette .subject-block .b-top, #prize_area .subject-block .b-top {
	 top: 0;
	 left: 0;
	 right: 0;
	 height: 2px;
}
 #subjects .subject-block .b-bottom, #roulette .subject-block .b-bottom, #prize_area .subject-block .b-bottom {
	 bottom: 0;
	 left: 0;
	 right: 0;
	 height: 2px;
}
 #subjects .subject-block .b-left, #roulette .subject-block .b-left, #prize_area .subject-block .b-left {
	 left: 0;
	 top: 0;
	 bottom: 0;
	 width: 2px;
}
 #subjects .subject-block .b-right, #roulette .subject-block .b-right, #prize_area .subject-block .b-right {
	 right: 0;
	 top: 0;
	 bottom: 0;
	 width: 2px;
}
 #subjects .subject-block.orange, #roulette .subject-block.orange, #prize_area .subject-block.orange {
	 background-image: url(../img/orange-bg.png);
}
 #subjects .subject-block.orange > .b-top, #roulette .subject-block.orange > .b-top, #prize_area .subject-block.orange > .b-top {
	 background: linear-gradient(to right, #725a39 0%, #d8b38a 43%, #d8b38a 60%, #725a39 100%);
}
 #subjects .subject-block.orange > .b-bottom, #roulette .subject-block.orange > .b-bottom, #prize_area .subject-block.orange > .b-bottom {
	 background: linear-gradient(to right, #725a39 0%, #d8b38a 43%, #d8b38a 60%, #725a39 100%);
}
 #subjects .subject-block.orange > .b-left, #roulette .subject-block.orange > .b-left, #prize_area .subject-block.orange > .b-left {
	 background: linear-gradient(to bottom, #725a39 0%, #d8b38a 43%, #d8b38a 60%, #725a39 100%);
}
 #subjects .subject-block.orange > .b-right, #roulette .subject-block.orange > .b-right, #prize_area .subject-block.orange > .b-right {
	 background: linear-gradient(to bottom, #725a39 0%, #d8b38a 43%, #d8b38a 60%, #725a39 100%);
}
 #subjects .subject-block.orange .subject > span:nth-child(1), #roulette .subject-block.orange .subject > span:nth-child(1), #prize_area .subject-block.orange .subject > span:nth-child(1) {
	 color: #f7e3a0;
}
 #subjects .subject-block.red, #roulette .subject-block.red, #prize_area .subject-block.red {
	 background-image: url(../img/red-bg.jpg);
}
 #subjects .subject-block.red > .b-top, #roulette .subject-block.red > .b-top, #prize_area .subject-block.red > .b-top {
	 background: linear-gradient(to right, #c23459 0%, #ec8492 43%, #ec8492 60%, #c23459 100%);
}
 #subjects .subject-block.red > .b-bottom, #roulette .subject-block.red > .b-bottom, #prize_area .subject-block.red > .b-bottom {
	 background: linear-gradient(to right, #c23459 0%, #ec8492 43%, #ec8492 60%, #c23459 100%);
}
 #subjects .subject-block.red > .b-left, #roulette .subject-block.red > .b-left, #prize_area .subject-block.red > .b-left {
	 background: linear-gradient(to bottom, #c23459 0%, #ec8492 43%, #ec8492 60%, #c23459 100%);
}
 #subjects .subject-block.red > .b-right, #roulette .subject-block.red > .b-right, #prize_area .subject-block.red > .b-right {
	 background: linear-gradient(to bottom, #c23459 0%, #ec8492 43%, #ec8492 60%, #c23459 100%);
}
 #subjects .subject-block.red .subject > span:nth-child(1), #roulette .subject-block.red .subject > span:nth-child(1), #prize_area .subject-block.red .subject > span:nth-child(1) {
	 color: #fbabb8;
}
 #subjects .subject-block.purple, #roulette .subject-block.purple, #prize_area .subject-block.purple {
	 background-image: url(../img/purple-bg.jpg);
}
 #subjects .subject-block.purple > .b-top, #roulette .subject-block.purple > .b-top, #prize_area .subject-block.purple > .b-top {
	 background: linear-gradient(to right, #862b7c 0%, #ec85d7 43%, #ec85d7 60%, #862b7c 100%);
}
 #subjects .subject-block.purple > .b-bottom, #roulette .subject-block.purple > .b-bottom, #prize_area .subject-block.purple > .b-bottom {
	 background: linear-gradient(to right, #862b7c 0%, #ec85d7 43%, #ec85d7 60%, #862b7c 100%);
}
 #subjects .subject-block.purple > .b-left, #roulette .subject-block.purple > .b-left, #prize_area .subject-block.purple > .b-left {
	 background: linear-gradient(to bottom, #862b7c 0%, #ec85d7 43%, #ec85d7 60%, #862b7c 100%);
}
 #subjects .subject-block.purple > .b-right, #roulette .subject-block.purple > .b-right, #prize_area .subject-block.purple > .b-right {
	 background: linear-gradient(to bottom, #862b7c 0%, #ec85d7 43%, #ec85d7 60%, #862b7c 100%);
}
 #subjects .subject-block.purple .subject > span:nth-child(1), #roulette .subject-block.purple .subject > span:nth-child(1), #prize_area .subject-block.purple .subject > span:nth-child(1) {
	 color: #fb9ed5;
}
 #subjects .subject-block.blue, #roulette .subject-block.blue, #prize_area .subject-block.blue {
	 background-image: url(../img/blue-bg.jpg);
}
 #subjects .subject-block.blue > .b-top, #roulette .subject-block.blue > .b-top, #prize_area .subject-block.blue > .b-top {
	 background: linear-gradient(to right, #3634c2 0%, #5655d3 50%, #5655d3 51%, #3634c2 100%);
}
 #subjects .subject-block.blue > .b-bottom, #roulette .subject-block.blue > .b-bottom, #prize_area .subject-block.blue > .b-bottom {
	 background: linear-gradient(to right, #3634c2 0%, #5655d3 50%, #5655d3 51%, #3634c2 100%);
}
 #subjects .subject-block.blue > .b-left, #roulette .subject-block.blue > .b-left, #prize_area .subject-block.blue > .b-left {
	 background: linear-gradient(to bottom, #3634c2 0%, #5655d3 50%, #5655d3 51%, #3634c2 100%);
}
 #subjects .subject-block.blue > .b-right, #roulette .subject-block.blue > .b-right, #prize_area .subject-block.blue > .b-right {
	 background: linear-gradient(to bottom, #3634c2 0%, #5655d3 50%, #5655d3 51%, #3634c2 100%);
}
 #subjects .subject-block.blue .subject > span:nth-child(1), #roulette .subject-block.blue .subject > span:nth-child(1), #prize_area .subject-block.blue .subject > span:nth-child(1) {
	 color: #b2a9fa;
}
 #subjects .subject-block.military, #roulette .subject-block.military, #prize_area .subject-block.military {
	 background-image: url(../img/military-bg.jpg);
}
 #subjects .subject-block.military > .b-top, #roulette .subject-block.military > .b-top, #prize_area .subject-block.military > .b-top {
	 background: linear-gradient(to right, #457dff 0%, #6695ff 51%, #457dff 100%);
}
 #subjects .subject-block.military > .b-bottom, #roulette .subject-block.military > .b-bottom, #prize_area .subject-block.military > .b-bottom {
	 background: linear-gradient(to right, #457dff 0%, #6695ff 51%, #457dff 100%);
}
 #subjects .subject-block.military > .b-left, #roulette .subject-block.military > .b-left, #prize_area .subject-block.military > .b-left {
	 background: linear-gradient(to bottom, #457dff 0%, #6695ff 51%, #457dff 100%);
}
 #subjects .subject-block.military > .b-right, #roulette .subject-block.military > .b-right, #prize_area .subject-block.military > .b-right {
	 background: linear-gradient(to bottom, #457dff 0%, #6695ff 51%, #457dff 100%);
}
 #subjects .subject-block.military .subject > span:nth-child(1), #roulette .subject-block.military .subject > span:nth-child(1), #prize_area .subject-block.military .subject > span:nth-child(1) {
	 color: #9ebffb;
}
 #subjects .subject-block > .subject-services, #roulette .subject-block > .subject-services, #prize_area .subject-block > .subject-services {
	 height: 200px;
	 width: 100%;
	 display: table;
	 padding: 8px;
}
 #subjects .subject-block > .subject-services .subject-fix, #roulette .subject-block > .subject-services .subject-fix, #prize_area .subject-block > .subject-services .subject-fix {
	 display: table-cell;
	 height: auto;
	 text-align: center;
	 vertical-align: middle;
}
 #subjects .subject-block > .subject-services .subject-fix .subject span, #roulette .subject-block > .subject-services .subject-fix .subject span, #prize_area .subject-block > .subject-services .subject-fix .subject span {
	 width: 164px;
	 display: block;
}
 #subjects .subject-block > .subject-services .subject-fix .subject span:nth-child(1), #roulette .subject-block > .subject-services .subject-fix .subject span:nth-child(1), #prize_area .subject-block > .subject-services .subject-fix .subject span:nth-child(1) {
	 text-shadow: 0 0 7px rgba(81, 67, 37, 0.55);
	 font-size: 17px;
	 text-overflow: ellipsis;
	 overflow: hidden;
	 white-space: nowrap;
}
 #subjects .subject-block > .subject-services .subject-fix .subject span:nth-child(2), #subjects .subject-block > .subject-services .subject-fix .subject span:nth-child(3), #roulette .subject-block > .subject-services .subject-fix .subject span:nth-child(2), #roulette .subject-block > .subject-services .subject-fix .subject span:nth-child(3), #prize_area .subject-block > .subject-services .subject-fix .subject span:nth-child(2), #prize_area .subject-block > .subject-services .subject-fix .subject span:nth-child(3) {
	 line-height: 12px;
	 font-size: 11px;
	 color: #dbdbdb;
	 text-shadow: 0 2px 4px rgba(133, 214, 0, 0.25);
}
 #subjects .subject-block > .subject-services .subject-fix .subject span:nth-child(3), #roulette .subject-block > .subject-services .subject-fix .subject span:nth-child(3), #prize_area .subject-block > .subject-services .subject-fix .subject span:nth-child(3) {
	 margin-bottom: 5px;
}
 #prize .modal-content {
	 background: url(../img/modal-bg.jpg) no-repeat top center;
	 border: 0;
	 box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.12);
	 border-radius: 6px;
}
/* Centered, polished modal for gift errors */
#open_gift_result .modal-content {
	background: #ffffff;
	border: 0;
	border-radius: 24px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.12);
	overflow: hidden;
}
#open_gift_result .modal-header {
	border-bottom: none;
	padding: 28px 28px 16px 28px;
	background: var(--bloki);
}
#open_gift_result .modal-title {
	font-weight: 800;
	font-size: 24px;
	color: var(--glavnyy-tekst);
	text-align: center;
	width: 100%;
	letter-spacing: 1px;
}
#open_gift_result .close {
	opacity: 0.4;
	position: absolute;
	right: 16px;
	top: 16px;
	font-size: 32px;
	font-weight: 300;
	color: #999;
	line-height: 1;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	cursor: pointer;
}
#open_gift_result .close:hover {
	opacity: 0.7;
	color: #666;
}
#open_gift_result .modal-body {
	padding: 0 32px 36px 32px;
	color: #555;
	font-size: 15px;
	text-align: center;
	background: var(--bloki);
}
#open_gift_result .modal-freetext {
	font-size: 15px; 
	color: #666; 
	margin: 0 0 16px 0; 
	line-height: 1.6;
}

.modal-backdrop.show { 
	background-color: rgba(10, 10, 20, 0.55);
}
.modal-backdrop.show { 
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

/* Polished my_gifts modal */
#my_gifts .modal-content {
	background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,248,255,0.98) 100%);
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 80px rgba(0,0,0,0.4);
	overflow: hidden;
}
#my_gifts .modal-header {
	padding: 20px 24px;
    background: var(--bloki);
}
#my_gifts .modal-title {
font-weight: 700;
    font-size: 22px;
    color: var(--glavnyy-tekst);
}
#my_gifts .close {
	opacity: 0.6;
	font-size: 28px;
}
#my_gifts .close:hover {
	opacity: 1;
}
#my_gifts .modal-body {
	padding: 20px 24px 24px 24px;
	max-height: 60vh;
	overflow-y: auto;
	    background: var(--cvet-vnutri-bloka);
}
#my_gifts .modal-body::-webkit-scrollbar {
	width: 8px;
}
#my_gifts .modal-body::-webkit-scrollbar-track {
	background: rgba(0,0,0,0.05);
	border-radius: 4px;
}
#my_gifts .modal-body::-webkit-scrollbar-thumb {
	background: rgba(0,0,0,0.2);
	border-radius: 4px;
}
#my_gifts .modal-body::-webkit-scrollbar-thumb:hover {
	background: rgba(0,0,0,0.3);
}

/* Polished inventory modal */
#inventory_modal .modal-content {
	background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,248,255,0.98) 100%);
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 80px rgba(0,0,0,0.4);
	overflow: hidden;
}
#inventory_modal .modal-header {
padding: 20px 24px;
    background: var(--bloki);
}
#inventory_modal .modal-title {
    font-weight: 700;
    font-size: 22px;
    color: var(--glavnyy-tekst);
}
#inventory_modal .close {
	opacity: 0.6;
	font-size: 28px;
}
#inventory_modal .close:hover {
	opacity: 1;
}
#inventory_modal .modal-body {
    padding: 20px 24px 24px 24px;
    max-height: 65vh;
    overflow-y: auto;
    background: var(--cvet-vnutri-bloka);
}
#inventory_modal .modal-body::-webkit-scrollbar {
	width: 8px;
}
.alert-info {
    color: var(--orange);
    background-color: var(--vtorostepennyy-cvet-bloka);
    border-color: var(--orange);
}
#inventory_modal .modal-body::-webkit-scrollbar-track {
	background: rgba(0,0,0,0.05);
	border-radius: 4px;
}
#inventory_modal .modal-body::-webkit-scrollbar-thumb {
	background: rgba(0,0,0,0.2);
	border-radius: 4px;
}
#inventory_modal .modal-body::-webkit-scrollbar-thumb:hover {
	background: rgba(0,0,0,0.3);
}

/* Inventory item styling */
.inventory-item {
background: var(--vtorostepennyy-cvet-bloka);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s 
ease;
}
.inventory-item:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	transform: translateY(-2px);
}
.inventory-item-inner {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}
.inventory-gift-image {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.inventory-gift-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.inventory-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.inventory-gift-name {
	margin: 0 0 6px 0;
	font-size: 17px;
	font-weight: 600;
	color: #1a1a2e;
}
.inventory-subjects {
	margin-bottom: 6px;
	color: #444;
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}
.inventory-subjects .subject {
margin: 2px 0;
    text-align: left;
    color: var(--glavnyy-tekst);
}
.inventory-subjects b {
    font-weight: 600;
    color: var(--orange);
}
.inventory-date {
	margin: 0;
	font-size: 12px;
	color: #888;
}
.inventory-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.btn-inventory {
	padding: 8px 16px;
	border: none;
	/* Блокировка повторного открытия подарка на карточке */
	.opening-disabled {
		pointer-events: none;
		opacity: 0.9;
		cursor: not-allowed;
	}

	/* Глобальная блокировка: вся сетка не кликабельна и приглушена */
	.grid-locked {
		pointer-events: none;
		opacity: 0.5;
		filter: grayscale(40%);
		transition: opacity 150ms ease;
	}
	.grid-locked .gift-grid-card.flipped {
		pointer-events: auto;
		opacity: 1;
		filter: none;
	}

		/* Модал подтверждения платного открытия — светлый стиль как на скриншоте */
		#confirm_paid_open_modal .modal-dialog {
			max-width: 600px;
		}
		#confirm_paid_open_modal .modal-content {
			border-radius: 18px;
			background: #ffffff;
			box-shadow: 0 16px 48px rgba(0,0,0,0.18);
			border: 1px solid rgba(0,0,0,0.06);
			overflow: hidden;
		}
		#confirm_paid_open_modal .confirm-modal-header {
			border-bottom: none;
			padding: 24px 24px 0 24px;
		}
		#confirm_paid_open_modal .modal-title {
			font-size: 30px;
			line-height: 34px;
			font-weight: 900;
			letter-spacing: 0.3px;
			color: #111827;
			text-transform: uppercase;
			text-align: center;
			margin: 0 32px;
		}
		#confirm_paid_open_modal .confirm-modal-body {
			padding: 18px 28px 26px 28px;
			text-align: center;
		}
		#confirm_paid_open_modal .confirm-icon-wrap {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			width: 80px;
			height: 80px;
			border-radius: 20px;
			background: rgba(51,102,255,0.12);
			margin: 8px auto 14px auto;
		}
		#confirm_paid_open_modal .confirm-gift-icon {
			font-size: 48px;
			line-height: 1;
			color: #3366ff;
			filter: drop-shadow(0 6px 16px rgba(51,102,255,0.25));
		}
		#confirm_paid_open_modal .confirm-title {
			font-size: 20px;
			font-weight: 800;
			color: #1f2937;
			margin-bottom: 8px;
		}
		#confirm_paid_open_modal .confirm-subtitle {
			font-size: 14px;
			color: #6b7280;
			margin-bottom: 6px;
		}
		#confirm_paid_open_modal .confirm-price {
			font-weight: 800;
			color: #3366ff;
		}
		#confirm_paid_open_modal .confirm-actions {
			display: flex;
			gap: 12px;
			justify-content: center;
			margin-top: 18px;
		}
		#confirm_paid_open_modal .confirm-actions .btn {
			min-width: 148px;
			height: 42px;
			padding: 0 18px;
			font-weight: 800;
			border-radius: 12px;
			line-height: 42px;
			appearance: none;
			border: 1px solid transparent;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			cursor: pointer;
		}
		#confirm_paid_open_modal .confirm-btn-cancel {
			color: #111827;
			border: 1px solid rgba(0,0,0,0.12);
			background: #eef2f7;
			box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset;
		}
		#confirm_paid_open_modal .confirm-btn-ok {
			color: #fff;
			background: #4c6bff;
			border: 1px solid #4c6bff;
			box-shadow: 0 10px 24px rgba(76,107,255,0.28);
		}
		#confirm_paid_open_modal .confirm-btn-ok:hover {
			filter: brightness(1.06);
		}
		#confirm_paid_open_modal .confirm-actions .btn:disabled,
		#confirm_paid_open_modal .confirm-actions .btn[disabled] {
			opacity: 1 !important;
			filter: none !important;
			cursor: not-allowed;
		}
		#confirm_paid_open_modal .btn {
			min-width: 140px;
			padding: 10px 18px;
			font-weight: 600;
		}
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}
.btn-activate {
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
	color: #fff;
}
.btn-activate:hover {
	background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
	transform: scale(1.03);
}
.btn-gift {
	background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
	color: #fff;
}
.btn-gift:hover {
	background: linear-gradient(135deg, #0069d9 0%, #004085 100%);
	transform: scale(1.03);
}
.btn-send {
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
	color: #fff;
}
.btn-send:hover {
	background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
}
.btn-cancel {
	background: #6c757d;
	color: #fff;
}
.btn-cancel:hover {
	background: #5a6268;
}
.gift-dialog {
	display: none;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(0,0,0,0.08);
}
.gift-dialog-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.gift-dialog-content label {
	font-size: 13px;
	font-weight: 600;
	color: #444;
	margin: 0;
}
.gift-user-input {
	padding: 8px 12px;
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: 6px;
	font-size: 14px;
	outline: none;
	transition: border 0.2s ease;
}
.gift-user-input:focus {
	border-color: #007bff;
}
.gift-dialog-actions {
	display: flex;
	gap: 8px;
}

 #prize .modal-content h4 {
	 text-align: center;
	 color: #f2f2f2;
	 font-size: 35px;
	 margin-bottom: 20px;
	 text-transform: uppergift;
	 font-weight: bold;
}
 #prize .modal-content #prize_area {
	 text-align: center;
	 padding: 50px 0;
}
 #prize .modal-content #prize_area .subject-block {
	 -webkit-transform: scale(1.25);
	 transform: scale(1.25);
}
 #prize .modal-content #prize_area .subject-block.orange {
	 box-shadow: 0 0 23px -4px #f7e3a0;
}
 #prize .modal-content #prize_area .subject-block.red {
	 box-shadow: 0 0 23px -4px #fbabb8;
}
 #prize .modal-content #prize_area .subject-block.purple {
	 box-shadow: 0 0 23px -4px #fb9ed5;
}
 #prize .modal-content #prize_area .subject-block.blue {
	 box-shadow: 0 0 23px -4px #b2a9fa;
}
 #prize .modal-content #prize_area .subject-block.military {
	 box-shadow: 0 0 23px -4px #9ebffb;
}
 #prize .modal-content .close {
	 color: #FFFFFF;
}
 #prize .modal-content p {
	 font-size: 14px;
	 color: #efecec;
	 text-align: center;
}
 .modal-backdrop-blur {
	 -webkit-filter: blur(5px);
	 -moz-filter: blur(5px);
	 -o-filter: blur(5px);
	 -ms-filter: blur(5px);
	 filter: blur(5px);
}
 #my_gifts_area .opened-gift {
	 width: 100%;
	 border-bottom: 1px solid rgba(0,0,0,0.08);
	 padding: 14px 0;
	 display: flex;
	 align-items: center;
	 transition: background 0.2s ease;
}
 #my_gifts_area .opened-gift:hover {
	 background: rgba(0,0,0,0.02);
	 border-radius: 8px;
	 padding-left: 8px;
	 padding-right: 8px;
}
 #my_gifts_area .opened-gift .gift-img {
	 width: 90px;
	 height: 90px;
	 flex-shrink: 0;
	 margin-right: 16px;
	 border-radius: 8px;
	 overflow: hidden;
	 box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
 #my_gifts_area .opened-gift .gift-img img {
	 width: 100%;
	 height: 100%;
	 object-fit: cover;
}
 #my_gifts_area .opened-gift .gift-info {
	 flex: 1;
}
 #my_gifts_area .opened-gift .gift-info h3 {
font-size: 16px;
    margin: 0 0 6px 0;
    color: var(--glavnyy-tekst);
    font-weight: 600;
}
 #my_gifts_area .opened-gift .gift-info small {
color: var(--vtorostepennyy-tekst);
    font-size: 12px;
    display: flex;
    margin-bottom: 8px;
    white-space: nowrap;
}
 #my_gifts_area .opened-gift .gift-info .subject {
    display: block;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 4px;
    color: var(--glavnyy-tekst);
    font-size: 13px;
}
 #my_gifts_area .opened-gift:last-child {
	 border-bottom: 0;
}
 #live_open_gifts_profile .opened-gift {
	 width: 100%;
	 border-bottom: 1px solid rgba(0,0,0,0.08);
	 padding: 14px;
	 display: flex;
	 align-items: center;
	 transition: all 0.2s ease;
	 background: #f8f9fa;
	 border-radius: 8px;
	 margin-bottom: 10px;
}
 #live_open_gifts_profile .opened-gift:hover {
	 background: #e9ecef;
	 box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	 transform: translateX(4px);
}
 #live_open_gifts_profile .opened-gift .gift-img {
	 width: 90px;
	 height: 90px;
	 flex-shrink: 0;
	 margin-right: 16px;
	 border-radius: 8px;
	 overflow: hidden;
	 box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
 #live_open_gifts_profile .opened-gift .gift-img img {
	 width: 100%;
	 height: 100%;
	 object-fit: cover;
}
 #live_open_gifts_profile .opened-gift .gift-info {
	 flex: 1;
}
 #live_open_gifts_profile .opened-gift .gift-info h3 {
	 font-size: 16px;
	 margin: 0 0 6px 0;
	 color: #1a1a2e;
	 font-weight: 600;
}
 #live_open_gifts_profile .opened-gift .gift-info .subject {
	 display: block;
	 width: 100%;
	 text-overflow: ellipsis;
	 overflow: hidden;
	 white-space: nowrap;
	 margin-top: 4px;
	 color: #444;
	 font-size: 13px;
}
 #live_open_gifts_profile .opened-gift:last-child {
	 border-bottom: 0;
}
 #live_open_gifts_profile .profile-gift-card {
display: inline-block;
    position: relative;
    background: var(--bloki);
    margin: 8px;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s 
ease;
    vertical-align: top;
}
 #live_open_gifts_profile .profile-gift-card:hover {
	 transform: translateY(-5px) scale(1.02);
	 box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
 #live_open_gifts_profile .gift-header {
	 display: flex;
	 justify-content: space-between;
	 align-items: center;
	 margin-bottom: 10px;
}
 #live_open_gifts_profile .gift-name {
	 color: #ffa36c;
	 font-weight: bold;
	 font-size: 14px;
	 text-align: left;
	 flex-grow: 1;
	 margin-bottom: 0;
	 line-height: 1.2;
}
 #live_open_gifts_profile .love-badge {
	 background: linear-gradient(45deg, #ff6b6b, #ffa36c);
	 color: white;
	 padding: 3px 8px;
	 border-radius: 10px;
	 font-size: 10px;
	 font-weight: bold;
}
 #live_open_gifts_profile .gift-image {
	 width: 100%;
	 height: 110px;
	 border-radius: 8px;
	 object-fit: cover;
	 margin-bottom: 10px;
	 transition: transform 0.3s ease;
}
 #live_open_gifts_profile .profile-gift-card:hover .gift-image {
	 transform: scale(1.05);
}
 #live_open_gifts_profile a {
	 position: relative;
	 display: block;
	 overflow: hidden;
	 border-radius: 8px;
}
 #live_open_gifts_profile .love-overlay {
	 position: absolute;
	 bottom: 0;
	 left: 0;
	 width: 100%;
	 background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
	 padding: 6px;
	 opacity: 0;
	 transition: opacity 0.3s ease;
}
 #live_open_gifts_profile .profile-gift-card:hover .love-overlay {
	 opacity: 1;
}
 #live_open_gifts_profile .love-actions {
	 display: flex;
	 justify-content: space-around;
}
 #live_open_gifts_profile .love-action {
	 color: white;
	 font-size: 11px;
}
 #live_open_gifts_profile .gift-subjects {
	 color: #ffffff;
	 font-size: 11px;
	 margin-top: 8px;
	 min-height: 28px;
	 text-align: center;
	 line-height: 1.3;
	 opacity: 0.9;
}
 #live_open_gifts_profile .gift-subjects .subject {
	 display: block;
	 margin: 2px 0;
}
 .gift-banner {
	 position: relative;
	 width: 100%; /* на всю ширину */
	 display: block;
	 border-radius: 16px;
	 overflow: hidden;
	 background: #ffffff;
	 box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
   background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.4) 100%);
 }
 .gift-banner a {
	 display: block;
	 width: auto;
	 height: auto;
	 position: relative;
 }
 /* Фон карточки как фото */
 .gift-banner-surface {
	 position: relative;
	 width: 100%;
	height: 150px;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 100% 56%;
  background-position: bottom;
	 transition: background-image 0.6s ease;
 }
 .gift-banner-content {
	 position: absolute;
	 inset: 0;
	 display: flex;
	 flex-direction: column;
	 justify-content: flex-start;
	 align-items: flex-start;
	 padding: 16px 20px;
 }
 .gift-banner h3 {
	 color: #ffffff;
	 text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
	 text-align: left;
	 font-size: 20px;
	 margin-bottom: 4px;
	 font-weight: 700;
	 line-height: 1.2;
 }
 .gift-banner p {
	 color: #d4dce5;
	 font-size: 13px;
	 text-align: left;
	 font-weight: 400;
	 text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
	 margin-bottom: 12px;
	 max-width: 100%;
	 line-height: 1.3;
 }
 .gift-banner-timer {
	 text-align: left;
	 padding: 0;
	 background: transparent;
	 border-radius: 0;
	 box-shadow: none;
	 margin-top: auto; /* прижать к низу */
 }
 .gift-banner-timer .timer-label {
	 display: inline;
	 color: #c5cdd6;
	 font-size: 11px;
	 margin-right: 6px;
	 font-weight: 500;
	 text-transform: uppercase;
	 letter-spacing: 0.3px;
 }
 .gift-banner-timer .timer-display {
	 display: inline;
	 color: #ffffff;
	 font-size: 11px;
	 font-weight: 500;
	 font-family: 'SF Mono', Consolas, monospace;
 }
/*# sourceMappingURL=style.css.map */
 .prize-icon {
	 height: 50px;
	 margin-right: 10px;
	 vertical-align: middle;
}
 .subject {
	 text-align: center;
	 padding: 10px;
}
 .gift-open-count {
position: absolute;
    top: 10px;
    right: 10px;
    background: var(--vtorostepennyy-cvet-bloka);
    color: var(--glavnyy-tekst);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 30px;
}
 .gift-open-count i {
	 color: #ffc107;
	 font-size: 10px;
}
 .gift-image-block {
	 position: relative;
}
/*test*/
 .open-gifts-feed {
	 background: #2a3042;
	 border-radius: 5px;
	 padding: 15px;
	 margin-bottom: 20px;
}
 .open-gifts-feed h3 {
	 margin-top: 0;
	 margin-bottom: 15px;
	 color: #fff;
}
 .open-gift-item {
	 background: rgba(0, 0, 0, 0.2);
	 border-radius: 5px;
	 padding: 10px;
	 margin-bottom: 10px;
}
 .open-gift-header {
	 display: flex;
	 justify-content: space-between;
	 align-items: center;
	 margin-bottom: 10px;
}
 .user-info {
	 display: flex;
	 align-items: center;
	 color: #fff;
	 text-decoration: none;
}
 .user-avatar {
	 width: 30px;
	 height: 30px;
	 border-radius: 50%;
	 margin-right: 10px;
}
 .open-time {
	 color: #8a8f9a;
	 font-size: 12px;
}
 .gift-info {
	 display: flex;
	 align-items: center;
	 margin-bottom: 10px;
}
 .gift-link {
	 display: flex;
	 align-items: center;
	 color: #fff;
	 text-decoration: none;
}
 .gift-image {
	 width: 40px;
	 height: 40px;
	 margin-right: 10px;
}
 .gift-name {
	 font-weight: bold;
	 margin-right: 10px;
}
 .gift-price {
	 color: #ffc107;
	 font-weight: bold;
}
 .gift-prizes {
	 background: rgba(0, 0, 0, 0.3);
	 border-radius: 5px;
	 padding: 8px;
}
 .gift-prize-item {
	 color: #fff;
	 font-size: 13px;
	 margin-bottom: 5px;
	 display: flex;
	 align-items: center;
}
 .gift-prize-item i {
	 color: #ffc107;
	 margin-right: 8px;
	 font-size: 12px;
}
 .gift-prize-item:last-child {
	 margin-bottom: 0;
}

/* Gifts grid and flip card */
.gifts-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.gift-card {
	perspective: 1000px;
}
.gift-card-inner {
	position: relative;
	width: 100%;
	padding-top: 100%;
	transform-style: preserve-3d;
	transition: transform 0.6s ease;
}
.gift-card.flipped .gift-card-inner { transform: rotateY(180deg); }
.gift-card-face {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	backface-visibility: hidden;
	border-radius: 12px;
	overflow: hidden;
}
.gift-card-front {
	background: rgba(20,22,28,0.7);
	border: 2px solid rgba(120,120,200,0.25);
}
.gift-card-back {
	background: rgba(20,22,28,0.9);
	border: 2px solid rgba(80,160,255,0.35);
	transform: rotateY(180deg);
	display: flex;
	align-items: center;
	justify-content: center;
}
.gift-meta {
	position: absolute;
	bottom: 8px; left: 8px; right: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #fff;
}
.gift-result { text-align: center; color: #fff; }
.gift-result-image img { max-width: 60%; height: auto; margin-bottom: 8px; }

/* Gift grid 5x3 for single gift page */
.gift-grid-wrap {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 16px;
}
.gift-grid-5x3 {
	display: grid;
	grid-template-columns: repeat(5, 150px);
	justify-content: center;
	column-gap: 12px;
	row-gap: 14px;
	margin-bottom: 12px;
	padding-top: 8px;
	padding-right: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
	align-content: start;
}
.gift-grid-card {
	perspective: 1000px;
	cursor: pointer;
	transition: transform 0.3s ease;
}
.gift-grid-card:hover {
	transform: translateY(-5px);
}
.gift-grid-inner {
	position: relative;
	width: 100%;
	height: 100px;
	transform-style: preserve-3d;
	transition: transform 0.6s ease;
}
.gift-grid-card.flipped .gift-grid-inner {
	transform: rotateY(180deg) scale(1.15);
	z-index: 10;
}
.gift-grid-front, .gift-grid-back {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	backface-visibility: hidden;
	border-radius: 12px;
	overflow: hidden;
}
.gift-grid-front {
	background: linear-gradient(135deg, rgba(30, 30, 40, 0.95) 0%, rgba(20, 20, 30, 0.98) 100%);
	border: 3px solid transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	position: relative;
}
/* Неоновые обводки по цветам подарков */
.gift-grid-card[data-gift-color="1"] .gift-grid-front {
	border-color: #ff2e2e;
	box-shadow: 0 0 20px rgba(255, 46, 46, 0.6), 0 0 40px rgba(255, 46, 46, 0.3), inset 0 0 30px rgba(255, 46, 46, 0.1);
}
.gift-grid-card[data-gift-color="2"] .gift-grid-front {
	border-color: #ff8c1a;
	box-shadow: 0 0 20px rgba(255, 140, 26, 0.6), 0 0 40px rgba(255, 140, 26, 0.3), inset 0 0 30px rgba(255, 140, 26, 0.1);
}
.gift-grid-card[data-gift-color="3"] .gift-grid-front {
	border-color: #2eff2e;
	box-shadow: 0 0 20px rgba(46, 255, 46, 0.6), 0 0 40px rgba(46, 255, 46, 0.3), inset 0 0 30px rgba(46, 255, 46, 0.1);
}
.gift-grid-card[data-gift-color="4"] .gift-grid-front {
	border-color: #2e8bff;
	box-shadow: 0 0 20px rgba(46, 139, 255, 0.6), 0 0 40px rgba(46, 139, 255, 0.3), inset 0 0 30px rgba(46, 139, 255, 0.1);
}
.gift-grid-card[data-gift-color="5"] .gift-grid-front {
	border-color: #ff2eb8;
	box-shadow: 0 0 20px rgba(255, 46, 184, 0.6), 0 0 40px rgba(255, 46, 184, 0.3), inset 0 0 30px rgba(255, 46, 184, 0.1);
}
.gift-grid-front::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: inherit;
	border-radius: 12px;
	z-index: -1;
	filter: blur(6px);
	opacity: 0.35;
}
.gift-grid-front img {
	width: 70%;
	height: 70%;
	object-fit: contain;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
	transition: transform 0.3s ease;
}
.gift-grid-card:hover .gift-grid-front img {
	transform: scale(1.1);
}
.gift-grid-back {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 240, 255, 0.98) 100%);
	border: 3px solid rgba(100, 150, 255, 0.5);
	transform: rotateY(180deg);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 30px rgba(100, 150, 255, 0.4);
}
.gift-grid-result {
	text-align: center;
	padding: 15px;
	color: #1a1a2e;
}
.gift-grid-result-image img {
	max-width: 85%;
	max-height: 70px;
	margin-bottom: 10px;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}
.gift-grid-result-title {
	font-size: 13px;
	font-weight: bold;
	color: #1a1a2e;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
@media (max-width: 768px) {
	.gift-grid-5x3 {
		grid-template-columns: repeat(3, 105px);
		justify-content: center;
		column-gap: 10px;
		row-gap: 6px;
		padding: 6px 8px;
		margin-bottom: 10px;
	}
	.inventory-item-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-direction: column;
}
}

