/* --- Banner promo custom --- */
.banner-promo {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  background: #181e29;
}
.banner-promo .banner-link {
  display: block;
  position: relative;
  height: 100%;
  width: 100%;
  text-decoration: none;
  padding: 32px 32px 32px 32px;
}
.banner-promo-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
}
.banner-promo .banner-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px 0;
  line-height: 1.1;
}
.banner-promo .banner-subtitle {
  color: #cbd6de;
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 18px 0;
}
.banner-promo .banner-meta {
  margin-top: 8px;
}
.banner-promo .banner-timer {
  background: #000;
  color: #fff;
  font-weight: 800;
  font-size: 1.18rem;
  padding: 14px 22px;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.7);
  display: inline-block;
}
.banner-promo-img {
  position: absolute;
  right: 24px;
  bottom: 0;
  width: 160px;
  height: 130px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  background: rgba(0,0,0,0.10);
  z-index: 1;
}
@media (max-width: 600px) {
  .banner-promo .banner-link { padding: 18px 10px 18px 10px; }
  .banner-promo-content { max-width: 100%; }
  .banner-promo-img { width: 90px; height: 70px; right: 6px; }
  .banner-promo .banner-title { font-size: 1.1rem; }
  .banner-promo .banner-timer { font-size: 0.95rem; padding: 8px 12px; }
}
/* --- End Banner promo custom --- */
@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: 14px;
  background: linear-gradient(180deg, #0e1418, #0b0d0f);
  border: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: 0 8px 30px rgba(2,6,12,0.6);
}
.banner-new .banner-inner {
  position: relative;
  min-height: 96px;
  display: flex;
  align-items: center;
}
.banner-new .banner-left {
  flex: 1;
  padding: 14px 16px;
  z-index: 3;
}
.banner-new .banner-right {
  display: flex;
  width: 220px;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.banner-new .banner-image {
  display: flex;
  width: 180px;
  height: 140px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  background-color: rgba(0, 0, 0, 0.75);
  overflow: visible;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transform: translateX(8px);
}
.banner-new .banner-image img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}
.banner-title {
  color: #ffffff;
  font-size: 28px;
  margin: 0 0 8px;
  line-height: 1.02;
  font-weight: 800;
}
.banner-subtitle {
  color: #cbd6de;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}
.banner-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.banner-timer {
  color: #ffffff;
  font-weight: 800;
  background: rgba(0,0,0,0.9);
  padding: 10px 14px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  font-size: 16px;
}
/* Overlay and content positioning for readable text over background */
.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(3,6,10,0.6), rgba(10,14,18,0.08));
  border-radius: 14px;
}
.banner-new .overlay-content {
  position: relative;
  z-index: 4;
  padding-left: 12px;
}

.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;
  }
  .banner-new .banner-right {
    width: 86px;
  }
  .banner-new .banner-image {
    width: 76px;
    height: 76px;
    padding: 4px;
  }
}
.gifts-main-block {
width: 100%;
    background: var(--bloki);
    border: none;
    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: var(--orange);
    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: var(--vtorostepennyy-cvet-bloka);
    border: none;
    color: var(--orange);
}

/*#gifts .gift-block, #gifts_not_open .gift-block {
    position: relative;
    display: block;
    box-shadow: rgba(0, 0, 0, 0.3) 5px 5px 20px;
    background-image: linear-gradient(-135deg, rgb(26 39 64) 0%, rgb(26 39 64) 46%, rgb(26 39 64) 100%);
    border-radius: 6px;
    height: 260px;
    padding: 0 10px 10px 10px;
    margin-top: 30px;
  }*/
#gifts .gift-block:hover, #gifts_not_open .gift-block:hover {
	background: var(--cvet-vnutri-bloka);
    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%;
  max-height: 220px;
  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%;
  /* background: linear-gradient(1deg, rgb(80 134 255 / 14%) 0%, rgb(19 29 48) 100%); */
  border-radius: 20px;
  margin-bottom: 0px;
  background: linear-gradient(89deg, rgba(23, 35, 59, 0), #414141, #222222, #222222);
  background-size: 400% 400%;
  animation: u 15s ease-in-out infinite;
}

.gift-banner a {
  padding: 40px 30px 40px 30px;
  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%;
  max-height: 222px;
  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: var(--vtorostepennyy-cvet-bloka);
    border: none;
    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: var(--orange);
    text-decoration: none;
    transition: 0.5s;
}

#opentex:hover {
  color: var(--orange) !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: none;
    box-shadow: 0 10px 28px -6px var(--orange);
}

.giftblock .gift-block .gift-image-block {
width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cvet-vnutri-bloka);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--box-shadow);
    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: var(--akcenti);
    color: var(--cvet-na-akcente);
    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: var(--vtorostepennyy-cvet-bloka);
    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: var(--vtorostepennyy-cvet-bloka);
    border: none;
    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;
}
