/* Новый модал подтверждения открытия — светлая тема, изолированные стили */
#confirm_paid_open_modal .confirm-open-modal {
	width: 100%;
	border-radius: 18px;
	background: #30343b;
	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: #ffffff;
	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: rgb(255 255 255 / 21%)
	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: #ffffff;
	margin-bottom: 8px;
}
#confirm_paid_open_modal .confirm-open-note {
	font-size: 14px;
	color: #ffffff;
}
#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: 6px;
	 padding: 30px;
	 margin-bottom: 30px;
	 height: auto;
	 overflow: hidden;
	 position: relative;
}
/* plain variant */
.gifts-main-block.plain-bg{
	background: #30343b;
    color: #ffffff;
    background-image: none;
}
.gifts-main-block.plain-bg h2{color:#ffffff;}
.gifts-main-block.plain-bg > a[class^="icon"]{opacity:0.8;}
.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 {
	 position: relative;
	 display: block;
	 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	 background: #3c4048;
	 border-radius: 12px;
	 height: 260px;
	 padding: 0 10px 10px 10px;
	 margin-top: 30px;
	 transition: all 0.3s ease;
}
 #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: calc(100% - 80px);
	 background-image: linear-gradient(-90deg, rgba(33, 21, 54, 0) 0%, rgba(24, 13, 43, 0.85) 100%);
	 left: 0;
	 padding-left: 10px;
	 padding-right: 10px;
	 text-overflow: ellipsis;
	 overflow: hidden;
	 white-space: nowrap;
}
 #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%;
	 max-height: 220px;
	 width: auto;
}
 #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: #30343b;
	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: #30343b;
}
#open_gift_result .modal-title {
	font-weight: 800;
	font-size: 24px;
	color: #ffffff;
	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: #30343b;
}

#open_gift_result .modal-freetext {
	font-size: 15px; 
	color: #ffffff; 
	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, rgb(48 52 59) 0%, rgb(48 52 59) 100%);
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 80px rgba(0,0,0,0.4);
	overflow: hidden;
}
#my_gifts .modal-header {
	border-bottom: 1px solid rgba(0,0,0,0.08);
	padding: 20px 24px;
	background: linear-gradient(135deg, rgb(60 64 72) 0%, rgb(60 64 72) 100%);
}
#my_gifts .modal-title {
	font-weight: 700;
	font-size: 22px;
	color: #ffffff;
}
#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;
}
#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, rgb(48 52 59) 0%, rgb(48 52 59) 100%);
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 80px rgba(0,0,0,0.4);
	overflow: hidden;
}
#inventory_modal .modal-header {
	border-bottom: 1px solid rgba(0,0,0,0.08);
	padding: 20px 24px;
	background: linear-gradient(135deg, rgb(60 64 72) 0%, rgb(60 64 72) 100%);
}
#inventory_modal .modal-title {
	font-weight: 700;
	font-size: 22px;
	color: #ffffff;
}
#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;
}
#inventory_modal .modal-body::-webkit-scrollbar {
	width: 8px;
}
#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: #3c4048;
	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: #ffffff;
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}
.inventory-subjects .subject {
	margin: 2px 0;
	text-align: left;
}
.inventory-subjects b {
	font-weight: 600;
	color: #ffffff;
}
.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;
	 background: #3c4048;
}
 #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: #ffffff;
	 font-weight: 600;
}
 #my_gifts_area .opened-gift .gift-info small {
	 color: #ffffff;
	 font-size: 12px;
	 display: block;
	 margin-bottom: 8px;
}
 #my_gifts_area .opened-gift .gift-info .subject {
	 display: block;
	 width: 100%;
	 text-overflow: ellipsis;
	 overflow: hidden;
	 white-space: nowrap;
	 margin-top: 4px;
	 color: #ffffff;
	 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;
	 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;
	 margin: 0 0 24px;
	 overflow: hidden;
	 border-radius: 0;
	 background: linear-gradient(135deg, #1f1f1f 0%, #171717 60%, #111 100%);
	 border: 1px solid rgba(255, 145, 0, 0.26);
	 box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 16px 30px rgba(0,0,0,.22);
	 clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
 }
 .gift-banner a {
	 display: block;
	 width: 100%;
	 min-height: 174px;
	 position: relative;
	 color: #fff;
	 text-decoration: none !important;
 }
 .gift-banner-surface {
	 position: absolute;
	 inset: 0;
	 width: 100%;
	 height: 100%;
	 background-position: center center;
	 background-repeat: no-repeat;
	 background-size: cover;
	 background-color: #151515;
	 opacity: .52;
	 filter: saturate(.95) contrast(1.08);
	 transition: background-image 0.6s ease, transform .35s ease, opacity .35s ease;
 }
 .gift-banner:before {
	 content: "";
	 position: absolute;
	 inset: 0;
	 pointer-events: none;
	 z-index: 1;
	 background: radial-gradient(circle at 90% 80%, rgba(255,145,0,.22), transparent 34%), linear-gradient(90deg, rgba(18,18,18,.96) 0%, rgba(18,18,18,.82) 52%, rgba(18,18,18,.58) 100%);
 }
 .gift-banner:after {
	 content: "";
	 position: absolute;
	 left: 18px;
	 right: 18px;
	 bottom: 0;
	 height: 1px;
	 pointer-events: none;
	 z-index: 2;
	 background: linear-gradient(90deg, transparent, rgba(255,145,0,.7), transparent);
 }
 .gift-banner:hover .gift-banner-surface {
	 transform: scale(1.04);
	 opacity: .62;
 }
 .gift-banner-content {
	 position: relative;
	 z-index: 3;
	 min-height: 174px;
	 display: flex;
	 flex-direction: column;
	 justify-content: space-between;
	 align-items: stretch;
	 padding: 19px 20px 17px;
	 background: transparent;
 }
 .gift-banner-badge {
	 display: inline-flex;
	 align-items: center;
	 gap: 8px;
	 width: fit-content;
	 max-width: 100%;
	 min-height: 34px;
	 padding: 8px 13px;
	 color: #ff9800;
	 font-size: 11px;
	 font-weight: 800;
	 line-height: 1;
	 text-transform: uppercase;
	 letter-spacing: .35px;
	 background: rgba(255, 145, 0, .10);
	 border: 1px solid rgba(255, 145, 0, .32);
	 box-shadow: 0 0 18px rgba(255,145,0,.10);
	 clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
 }
 .gift-banner-badge-icon {
	 display: inline-flex;
	 align-items: center;
	 justify-content: center;
	 width: 18px;
	 height: 18px;
	 font-size: 14px;
 }
 .gift-banner-main {
	 display: flex;
	 align-items: flex-end;
	 justify-content: space-between;
	 gap: 16px;
 }
 .gift-banner-text {
	 min-width: 0;
 }
 .gift-banner h3 {
	 color: #ffffff;
	 text-shadow: 0 0 18px rgba(255, 145, 0, .28), 0 2px 8px rgba(0,0,0,.65);
	 text-align: left;
	 font-size: 24px;
	 margin: 0 0 7px;
	 font-weight: 900;
	 line-height: 1.05;
	 letter-spacing: .2px;
 }
 .gift-banner p {
	 color: #d7d7d7;
	 font-size: 12px;
	 text-align: left;
	 font-weight: 500;
	 text-shadow: 0 1px 4px rgba(0,0,0,.55);
	 margin: 0;
	 max-width: 230px;
	 line-height: 1.35;
 }
 .gift-banner-timer {
	 flex: 0 0 auto;
	 display: inline-flex;
	 flex-direction: column;
	 align-items: flex-end;
	 justify-content: center;
	 min-width: 116px;
	 min-height: 54px;
	 padding: 10px 13px;
	 text-align: right;
	 margin: 0;
	 background: linear-gradient(135deg, rgba(255,145,0,.16), rgba(255,145,0,.05));
	 border: 1px solid rgba(255,145,0,.38);
	 box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 0 20px rgba(255,145,0,.10);
	 clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
 }
 .gift-banner-timer .timer-label {
	 display: block;
	 color: #a9a0a6;
	 font-size: 9px;
	 margin: 0 0 5px;
	 font-weight: 800;
	 text-transform: uppercase;
	 letter-spacing: .45px;
 }
 .gift-banner-timer .timer-display {
	 display: block;
	 color: #ff9800;
	 font-size: 16px;
	 font-weight: 900;
	 line-height: 1;
	 font-family: inherit;
	 text-shadow: 0 0 12px rgba(255,145,0,.25);
 }
 .gift-banner-timer.is-ready .timer-display {
	 color: #ffffff;
 }
 @media (max-width: 768px) {
	 .gift-banner {
		 margin-bottom: 18px;
	 }
	 .gift-banner a,
	 .gift-banner-content {
		 min-height: 158px;
	 }
	 .gift-banner-content {
		 padding: 16px;
	 }
	 .gift-banner-main {
		 gap: 10px;
	 }
	 .gift-banner h3 {
		 font-size: 21px;
	 }
	 .gift-banner p {
		 font-size: 11px;
		 max-width: 180px;
	 }
	 .gift-banner-timer {
		 min-width: 102px;
		 min-height: 48px;
		 padding: 9px 10px;
	 }
	 .gift-banner-timer .timer-display {
		 font-size: 14px;
	 }
 }
 @media (max-width: 420px) {
	 .gift-banner a,
	 .gift-banner-content {
		 min-height: 150px;
	 }
	 .gift-banner-content {
		 padding: 14px;
	 }
	 .gift-banner-badge {
		 font-size: 10px;
		 padding: 7px 10px;
	 }
	 .gift-banner h3 {
		 font-size: 19px;
	 }
	 .gift-banner p {
		 display: none;
	 }
	 .gift-banner-timer {
		 min-width: 96px;
	 }
 }
/*# 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: rgba(0, 0, 0, 0.7);
	 color: #fff;
	 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, 120px);
		justify-content: center;
		column-gap: 10px;
		row-gap: 6px;
		padding: 6px 8px;
		margin-bottom: 10px;
	}
}



/* =========================================================
   SolutionCyberGold redesign override for GiftBox — 101FPS
   ========================================================= */
:root{
    --gb-bg:#171717;
    --gb-card:#202020;
    --gb-card2:#262626;
    --gb-line:rgba(255,145,0,.18);
    --gb-line2:rgba(255,255,255,.055);
    --gb-orange:#ff9100;
    --gb-orange2:#ff6b00;
    --gb-text:#ffffff;
    --gb-muted:#a9a0a6;
}
.gifts-main-block,
.gifts-main-block.plain-bg{
    background:
        radial-gradient(circle at 92% 10%, rgba(255,145,0,.10), transparent 28%),
        linear-gradient(135deg,#202020 0%,#171717 62%,#121212 100%) !important;
    border:1px solid var(--gb-line) !important;
    border-radius:8px !important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.025), 0 14px 32px rgba(0,0,0,.28) !important;
    padding:28px !important;
    overflow:hidden !important;
}
.gifts-main-block:before{
    content:'';
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(90deg,rgba(255,145,0,.07),transparent 34%,transparent 66%,rgba(255,145,0,.04));
}
.gifts-main-block h2{
    position:relative;
    margin:10px auto 28px !important;
    color:#fff !important;
    text-align:center !important;
    font-size:30px !important;
    line-height:1.15 !important;
    text-transform:uppercase !important;
    letter-spacing:.6px !important;
    text-shadow:0 0 22px rgba(255,145,0,.22) !important;
}
.gifts-main-block h2:after{
    content:'';
    display:block;
    width:70%;
    max-width:620px;
    height:1px;
    margin:12px auto 0;
    background:linear-gradient(90deg,transparent,rgba(255,145,0,.85),transparent);
}
.gifts-main-block p[style]{
    color:var(--gb-muted) !important;
    font-size:13px !important;
    letter-spacing:.2px !important;
}
.gifts-main-block .qwe,
.gifts-main-block button.qwe{
    position:relative;
    z-index:2;
    color:#1b1308 !important;
    background:linear-gradient(135deg,var(--gb-orange),var(--gb-orange2)) !important;
    border:0 !important;
    border-radius:0 !important;
    padding:14px 24px !important;
    min-height:42px;
    font-weight:800 !important;
    text-transform:uppercase;
    letter-spacing:.45px;
    clip-path:polygon(0 0,calc(100% - 13px) 0,100% 13px,100% 100%,13px 100%,0 calc(100% - 13px));
    box-shadow:0 10px 24px rgba(255,145,0,.18) !important;
    opacity:1 !important;
}
.gifts-main-block .qwe:hover{filter:brightness(1.08);transform:translateY(-1px);opacity:1 !important;}
.gifts-main-block > a[class^="icon"]{
    z-index:3;
    background-color:#eceff3 !important;
    border-radius:50% !important;
    opacity:.9 !important;
    box-shadow:0 8px 18px rgba(0,0,0,.28) !important;
}
#gifts{position:relative;z-index:2;margin-top:8px;}
#gifts .gift-block,
#gifts_not_open .gift-block{
    height:245px !important;
    margin-top:26px !important;
    padding:14px !important;
    background:
        radial-gradient(circle at 80% 8%,rgba(255,145,0,.12),transparent 28%),
        linear-gradient(145deg,#282828,#1b1b1b) !important;
    border:1px solid var(--gb-line) !important;
    border-radius:8px !important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.025), 0 10px 22px rgba(0,0,0,.25) !important;
    overflow:hidden !important;
    text-decoration:none !important;
    clip-path:polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,18px 100%,0 calc(100% - 18px));
}
#gifts .gift-block:hover,
#gifts_not_open .gift-block:hover{
    transform:translateY(-5px) !important;
    border-color:rgba(255,145,0,.45) !important;
    box-shadow:0 16px 32px rgba(0,0,0,.35), 0 0 26px rgba(255,145,0,.10) !important;
}
#gifts .gift-block div.gift-image-block,
#gifts_not_open .gift-block div.gift-image-block{
    height:174px !important;
    line-height:174px !important;
    border-radius:8px !important;
    background:linear-gradient(135deg,rgba(255,255,255,.035),rgba(255,255,255,.01)) !important;
}
#gifts .gift-block div.gift-image-block img,
#gifts_not_open .gift-block div.gift-image-block img{
    max-height:158px !important;
    filter:drop-shadow(0 10px 18px rgba(255,145,0,.16)) !important;
    transition:.25s ease;
}
#gifts .gift-block:hover div.gift-image-block img{transform:scale(1.04);}
#gifts .gift-meta,
#gifts_not_open .gift-meta{position:absolute;left:12px;right:12px;bottom:12px;height:42px;}
#gifts .gift-name,
#gifts_not_open .gift-name{
    left:0 !important;
    bottom:0 !important;
    width:calc(100% - 84px) !important;
    background:linear-gradient(90deg,rgba(18,18,18,.95),rgba(18,18,18,.45)) !important;
    color:#fff !important;
    font-size:12px !important;
    font-weight:800 !important;
    padding-left:12px !important;
}
#gifts .gift-price,
#gifts_not_open .gift-price{
    right:0 !important;
    bottom:0 !important;
    width:84px !important;
    background:linear-gradient(135deg,var(--gb-orange),var(--gb-orange2)) !important;
    color:#1b1308 !important;
    font-weight:900 !important;
    text-shadow:none !important;
}
#gifts .gift-open-count{
    position:absolute;
    top:12px;
    right:12px;
    min-width:44px;
    height:30px;
    padding:0 10px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    color:#fff;
    font-weight:900;
    background:#111;
    border:1px solid rgba(255,145,0,.30);
    border-radius:8px;
    box-shadow:0 8px 18px rgba(0,0,0,.22);
}
.gift-grid-wrap{max-width:860px !important;position:relative;z-index:2;}
.gift-grid-5x3{
    grid-template-columns:repeat(5,140px) !important;
    gap:14px !important;
    padding:8px !important;
}
.gift-grid-card{border-radius:9px !important;}
.gift-grid-inner{height:96px !important;}
.gift-grid-front,
.gift-grid-back{
    border-radius:9px !important;
    border:1px solid rgba(255,145,0,.28) !important;
    background:
        radial-gradient(circle at 50% 0%,rgba(255,145,0,.17),transparent 56%),
        linear-gradient(145deg,#262626,#151515) !important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 10px 22px rgba(0,0,0,.33) !important;
}
.gift-grid-front:before{display:none !important;}
.gift-grid-card[data-gift-color] .gift-grid-front{
    border-color:rgba(255,145,0,.36) !important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 10px 22px rgba(0,0,0,.33),0 0 18px rgba(255,145,0,.10) !important;
}
.gift-grid-card:hover .gift-grid-front{
    border-color:rgba(255,145,0,.65) !important;
    box-shadow:0 15px 28px rgba(0,0,0,.38),0 0 22px rgba(255,145,0,.16) !important;
}
.gift-grid-front img{width:68% !important;height:68% !important;filter:drop-shadow(0 8px 16px rgba(255,145,0,.18)) !important;}
.gift-grid-back{transform:rotateY(180deg);}
.gift-grid-result-title{color:#fff !important;text-shadow:none !important;font-size:12px !important;}
.gift-grid-result{color:#fff !important;}
#confirm_paid_open_modal .confirm-open-modal,
#my_gifts .modal-content,
#inventory_modal .modal-content,
#open_gift_result .modal-content,
#prize .modal-content{
    background:
        radial-gradient(circle at 88% 12%,rgba(255,145,0,.09),transparent 30%),
        linear-gradient(135deg,#242424,#181818) !important;
    border:1px solid var(--gb-line) !important;
    border-radius:8px !important;
    box-shadow:0 30px 90px rgba(0,0,0,.62), inset 0 0 0 1px rgba(255,255,255,.025) !important;
    color:#fff !important;
    clip-path:polygon(0 0,calc(100% - 20px) 0,100% 20px,100% 100%,20px 100%,0 calc(100% - 20px));
}
#confirm_paid_open_modal .confirm-open-title,
#my_gifts .modal-title,
#inventory_modal .modal-title,
#open_gift_result .modal-title{
    color:#fff !important;
    text-transform:uppercase !important;
    letter-spacing:.5px !important;
}
#confirm_paid_open_modal .confirm-open-title:after,
#my_gifts .modal-title:after,
#inventory_modal .modal-title:after{
    content:'';
    display:block;
    width:140px;
    height:2px;
    margin:10px 0 0;
    background:linear-gradient(90deg,var(--gb-orange),transparent);
}
#my_gifts .modal-header,
#inventory_modal .modal-header,
#open_gift_result .modal-header{
    background:#202020 !important;
    border-bottom:1px solid var(--gb-line2) !important;
}
#my_gifts .close,
#inventory_modal .close,
#open_gift_result .close,
#prize .close,
#confirm_paid_open_modal .confirm-open-close{
    color:#ff6b6b !important;
    opacity:.72 !important;
    text-shadow:none !important;
}
#confirm_paid_open_modal .confirm-open-icon{
    background:rgba(255,145,0,.11) !important;
    color:var(--gb-orange) !important;
    filter:drop-shadow(0 8px 20px rgba(255,145,0,.23)) !important;
}
#confirm_paid_open_modal .confirm-open-question{color:#fff !important;}
#confirm_paid_open_modal .confirm-open-note{color:var(--gb-muted) !important;}
#confirm_paid_open_modal .confirm-open-price{color:var(--gb-orange) !important;}
#confirm_paid_open_modal .confirm-open-cancel,
.btn-cancel{
    background:#303030 !important;
    border:1px solid rgba(255,255,255,.08) !important;
    color:#fff !important;
}
#confirm_paid_open_modal .confirm-open-apply,
.btn-activate,
.btn-send,
.btn-gift,
.btn-inventory{
    background:linear-gradient(135deg,var(--gb-orange),var(--gb-orange2)) !important;
    border:0 !important;
    color:#1b1308 !important;
    border-radius:6px !important;
    font-weight:900 !important;
    box-shadow:0 8px 18px rgba(255,145,0,.16) !important;
}
.btn-gift{background:#303030 !important;color:#fff !important;border:1px solid rgba(255,145,0,.28) !important;box-shadow:none !important;}
#my_gifts_area .opened-gift,
.inventory-item{
    background:linear-gradient(135deg,#2a2a2a,#202020) !important;
    border:1px solid rgba(255,255,255,.055) !important;
    border-radius:8px !important;
    margin-bottom:14px !important;
    padding:14px !important;
    box-shadow:0 8px 18px rgba(0,0,0,.24) !important;
}
#my_gifts_area .opened-gift:hover,
.inventory-item:hover{
    transform:translateY(-2px) !important;
    border-color:rgba(255,145,0,.28) !important;
    background:linear-gradient(135deg,#2e2e2e,#202020) !important;
}
.inventory-gift-name,
#my_gifts_area .opened-gift .gift-info h3{color:#fff !important;font-weight:900 !important;}
.inventory-subjects,
.inventory-date,
#my_gifts_area .opened-gift .gift-info small,
#my_gifts_area .opened-gift .gift-info .subject{color:var(--gb-muted) !important;}
.inventory-gift-image,
#my_gifts_area .opened-gift .gift-img{background:#181818 !important;border:1px solid rgba(255,145,0,.16) !important;}
.gift-dialog{border-top:1px solid rgba(255,255,255,.07) !important;}
.gift-dialog-content label{color:#fff !important;}
.gift-user-input{background:#171717 !important;border:1px solid rgba(255,145,0,.22) !important;color:#fff !important;}
.modal-backdrop.show{opacity:.82 !important;}
@media (max-width: 991px){
    .gifts-main-block{padding:20px !important;}
    .gift-grid-5x3{grid-template-columns:repeat(3,120px) !important;gap:10px !important;}
    .gift-grid-inner{height:86px !important;}
}
@media (max-width: 480px){
    .gift-grid-5x3{grid-template-columns:repeat(2,1fr) !important;}
    .inventory-item-inner{flex-direction:column !important;}
    .inventory-actions{width:100% !important;}
    .btn-inventory{width:100% !important;}
}

/* ===== FIX 16.06: правки по скринам — инвентарь, ключик, стрелка, цена/название ===== */
.gifts-main-block.plain-bg{
    padding-top: 38px !important;
}

.gifts-main-block .btn.qwe{
    margin-left: 6px !important;
    margin-top: 0 !important;
    margin-bottom: 28px !important;
    min-height: 52px !important;
    padding: 0 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
}

.gifts-main-block > a[class^="icon"]{
    width: 42px !important;
    height: 42px !important;
    top: 34px !important;
    opacity: 1 !important;
    z-index: 5 !important;
    background-image: none !important;
    background-color: #171717 !important;
    border: 1px solid rgba(255,145,0,.55) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.35), 0 0 18px rgba(255,145,0,.12) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: .2s ease !important;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.gifts-main-block > a[class^="icon"]:hover{
    opacity: 1 !important;
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, var(--gb-orange), var(--gb-orange2)) !important;
    color: #111 !important;
    box-shadow: 0 12px 26px rgba(0,0,0,.38), 0 0 22px rgba(255,145,0,.25) !important;
}

.gifts-main-block > a[class^="icon"]:before{
    font-family: FontAwesome, 'Font Awesome 5 Free', 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.gifts-main-block > a[class^="icon"].icon-open-gifts{
    right: 56px !important;
}
.gifts-main-block > a[class^="icon"].icon-open-gifts:before{
    content: "\f084";
}

.gifts-main-block > a[class^="icon"].icon-back-to-gifts{
    left: 56px !important;
}
.gifts-main-block > a[class^="icon"].icon-back-to-gifts:before{
    content: "\f060";
}

#gifts .gift-meta,
#gifts_not_open .gift-meta{
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    height: 42px !important;
    display: flex !important;
    align-items: stretch !important;
    border: 1px solid rgba(255,145,0,.20) !important;
    background: linear-gradient(90deg, rgba(18,18,18,.94), rgba(18,18,18,.72)) !important;
    border-radius: 7px !important;
    overflow: hidden !important;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

#gifts .gift-name,
#gifts_not_open .gift-name{
    position: static !important;
    order: 1 !important;
    width: 58% !important;
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 12px !important;
    background: transparent !important;
    color: var(--gb-orange) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 12px rgba(255,145,0,.26) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#gifts .gift-price,
#gifts_not_open .gift-price{
    position: static !important;
    order: 2 !important;
    width: 42% !important;
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 12px !important;
    background: rgba(255,255,255,.035) !important;
    color: #9c9c9c !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-align: right !important;
    text-shadow: none !important;
    border-left: 1px solid rgba(255,255,255,.06) !important;
}

@media (max-width: 991px){
    .gifts-main-block .btn.qwe{
        margin-left: 0 !important;
        margin-bottom: 22px !important;
    }
    .gifts-main-block > a[class^="icon"].icon-open-gifts{right: 22px !important;}
    .gifts-main-block > a[class^="icon"].icon-back-to-gifts{left: 22px !important;}
}

/* ===== FIX: кнопки назад/ключ без иконочного шрифта ===== */
.gifts-main-block > a[class^="icon"]{
    width: 42px !important;
    height: 42px !important;
    top: 34px !important;
    opacity: 1 !important;
    z-index: 20 !important;
    background-color: #181818 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
    border: 1px solid rgba(255,145,0,.65) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.45), 0 0 18px rgba(255,145,0,.18) !important;
    display: block !important;
    transition: .2s ease !important;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.gifts-main-block > a[class^="icon"]:before,
.gifts-main-block > a[class^="icon"]:after{
    content: none !important;
    display: none !important;
}
.gifts-main-block > a[class^="icon"].icon-back-to-gifts{
    left: 56px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15 6L9 12L15 18' stroke='%23ff9100' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
.gifts-main-block > a[class^="icon"].icon-open-gifts{
    right: 56px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 14.5C5.62 14.5 4.5 13.38 4.5 12C4.5 10.62 5.62 9.5 7 9.5C7.95 9.5 8.78 10.03 9.2 10.82H20V13.2H17.9V15.2H15.55V13.2H9.2C8.78 13.97 7.95 14.5 7 14.5Z' stroke='%23ff9100' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='7' cy='12' r='0.9' fill='%23ff9100'/%3E%3C/svg%3E") !important;
}
.gifts-main-block > a[class^="icon"]:hover{
    transform: translateY(-2px) !important;
    background-color: #ff9100 !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.48), 0 0 24px rgba(255,145,0,.35) !important;
}
.gifts-main-block > a[class^="icon"].icon-back-to-gifts:hover{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15 6L9 12L15 18' stroke='%23111111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
.gifts-main-block > a[class^="icon"].icon-open-gifts:hover{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 14.5C5.62 14.5 4.5 13.38 4.5 12C4.5 10.62 5.62 9.5 7 9.5C7.95 9.5 8.78 10.03 9.2 10.82H20V13.2H17.9V15.2H15.55V13.2H9.2C8.78 13.97 7.95 14.5 7 14.5Z' stroke='%23111111' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='7' cy='12' r='0.9' fill='%23111111'/%3E%3C/svg%3E") !important;
}
@media (max-width: 991px){
    .gifts-main-block > a[class^="icon"].icon-back-to-gifts{left: 22px !important;}
    .gifts-main-block > a[class^="icon"].icon-open-gifts{right: 22px !important;}
}

/* ===== FIX 16.06: аккуратный hover для кнопок назад/ключ ===== */
.gifts-main-block > a[class^="icon"]:hover{
    transform: translateY(-1px) !important;
    background-color: #202020 !important;
    border-color: rgba(255,145,0,.95) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.48), 0 0 18px rgba(255,145,0,.28) !important;
}
.gifts-main-block > a[class^="icon"].icon-back-to-gifts:hover{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15 6L9 12L15 18' stroke='%23ff9100' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
.gifts-main-block > a[class^="icon"].icon-open-gifts:hover{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 14.5C5.62 14.5 4.5 13.38 4.5 12C4.5 10.62 5.62 9.5 7 9.5C7.95 9.5 8.78 10.03 9.2 10.82H20V13.2H17.9V15.2H15.55V13.2H9.2C8.78 13.97 7.95 14.5 7 14.5Z' stroke='%23ff9100' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='7' cy='12' r='0.9' fill='%23ff9100'/%3E%3C/svg%3E") !important;
}

/* ===== FINAL FIX: static desktop nav buttons, no hover shift/tooltip artifacts ===== */
.gifts-main-block > a.icon-back-to-gifts,
.gifts-main-block > a.icon-open-gifts,
.gifts-main-block > a.icon-back-to-gifts:hover,
.gifts-main-block > a.icon-open-gifts:hover,
.gifts-main-block > a.icon-back-to-gifts:focus,
.gifts-main-block > a.icon-open-gifts:focus,
.gifts-main-block > a.icon-back-to-gifts:active,
.gifts-main-block > a.icon-open-gifts:active{
    width: 42px !important;
    height: 42px !important;
    top: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    background-color: #181818 !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 22px 22px !important;
    border: 1px solid rgba(255,145,0,.75) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.45), 0 0 16px rgba(255,145,0,.18) !important;
    outline: none !important;
    overflow: hidden !important;
    text-indent: -9999px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    display: block !important;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important;
}
.gifts-main-block > a.icon-back-to-gifts:hover,
.gifts-main-block > a.icon-open-gifts:hover{
    background-color: #202020 !important;
    border-color: rgba(255,145,0,.95) !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.45), 0 0 20px rgba(255,145,0,.28) !important;
}
.gifts-main-block > a.icon-back-to-gifts:before,
.gifts-main-block > a.icon-open-gifts:before,
.gifts-main-block > a.icon-back-to-gifts:after,
.gifts-main-block > a.icon-open-gifts:after,
.gifts-main-block > a.icon-back-to-gifts:hover:before,
.gifts-main-block > a.icon-open-gifts:hover:before,
.gifts-main-block > a.icon-back-to-gifts:hover:after,
.gifts-main-block > a.icon-open-gifts:hover:after{
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}
.gifts-main-block > a.icon-back-to-gifts,
.gifts-main-block > a.icon-back-to-gifts:hover,
.gifts-main-block > a.icon-back-to-gifts:focus,
.gifts-main-block > a.icon-back-to-gifts:active{
    left: 56px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15 6L9 12L15 18' stroke='%23ff9100' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
.gifts-main-block > a.icon-open-gifts,
.gifts-main-block > a.icon-open-gifts:hover,
.gifts-main-block > a.icon-open-gifts:focus,
.gifts-main-block > a.icon-open-gifts:active{
    right: 56px !important;
    background-size: 21px 21px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7.5 14.25A2.25 2.25 0 1 1 7.5 9.75A2.25 2.25 0 0 1 9.55 11.1H19.5V13.2H17.5V15H15.3V13.2H9.55A2.25 2.25 0 0 1 7.5 14.25Z' stroke='%23ff9100' stroke-width='1.8' stroke-linejoin='round'/%3E%3Ccircle cx='7.5' cy='12' r='0.65' fill='%23ff9100'/%3E%3C/svg%3E") !important;
}
.tooltip,
.tooltip.show,
.tooltip.in{
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
@media (max-width: 991px){
    .gifts-main-block > a.icon-back-to-gifts,
    .gifts-main-block > a.icon-back-to-gifts:hover{left: 22px !important;}
    .gifts-main-block > a.icon-open-gifts,
    .gifts-main-block > a.icon-open-gifts:hover{right: 22px !important;}
}

/* ===== SolutionCyber: live opened gifts block on main page ===== */
.sc-live-gifts-block{
    position:relative;
    margin:22px 0 0;
    padding:18px 18px 16px;
    overflow:hidden;
    background:
        radial-gradient(circle at 92% 8%, rgba(255,145,0,.14), transparent 34%),
        linear-gradient(135deg, rgba(31,31,31,.98), rgba(18,18,18,.98));
    border:1px solid rgba(255,145,0,.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.sc-live-gifts-block:before{
    content:"";
    position:absolute;
    left:18px;
    right:18px;
    top:60px;
    height:1px;
    background:linear-gradient(90deg, rgba(255,145,0,.85), rgba(255,145,0,.08), transparent);
    pointer-events:none;
}
.sc-live-gifts-head{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:20px;
}
.sc-live-gifts-title{
    display:flex;
    align-items:center;
    gap:10px;
    color:#fff;
    font-size:15px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.5px;
}
.sc-live-gifts-title i{
    width:34px;
    height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#111;
    background:linear-gradient(135deg,#ff9800,#ff6a00);
    clip-path:polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    box-shadow:0 0 16px rgba(255,145,0,.25);
}
.sc-live-gifts-link{
    color:#ff9800!important;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    text-decoration:none!important;
    opacity:.9;
}
.sc-live-gifts-link:hover{opacity:1;color:#ffb13b!important;}
.sc-live-gifts-list{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
.sc-live-gift-item{
    min-width:0;
    display:flex;
    align-items:center;
    gap:12px;
    padding:11px;
    background:rgba(255,255,255,.035);
    border:1px solid rgba(255,255,255,.06);
    clip-path:polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    transition:border-color .18s ease, background .18s ease, transform .18s ease;
}
.sc-live-gift-item:hover{
    transform:translateY(-2px);
    background:rgba(255,145,0,.055);
    border-color:rgba(255,145,0,.28);
}
.sc-live-gift-thumb{
    flex:0 0 56px;
    width:56px;
    height:56px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:rgba(0,0,0,.22);
    border:1px solid rgba(255,145,0,.18);
    border-radius:10px;
    text-decoration:none!important;
}
.sc-live-gift-thumb img{
    width:52px;
    height:52px;
    object-fit:contain;
    filter:drop-shadow(0 0 10px rgba(255,145,0,.22));
}
.sc-live-gift-body{min-width:0;flex:1;}
.sc-live-gift-top{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    margin-bottom:4px;
}
.sc-live-gift-name{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#fff!important;
    font-size:13px;
    font-weight:800;
    text-decoration:none!important;
}
.sc-live-gift-badge{
    flex:0 0 auto;
    padding:3px 7px;
    color:#111;
    background:#ff9800;
    border-radius:8px;
    font-size:10px;
    font-weight:900;
    text-transform:uppercase;
}
.sc-live-gift-subject{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#b9b9b9;
    font-size:12px;
    line-height:1.25;
}
.sc-live-gift-subject *{
    display:inline!important;
    margin:0!important;
    padding:0!important;
    color:inherit!important;
    font-size:inherit!important;
    line-height:inherit!important;
    background:none!important;
    border:0!important;
}
.sc-live-gift-meta{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:5px;
    color:#8cbe5b;
    font-size:11px;
}
.sc-live-gift-user{
    color:#ff9800!important;
    font-weight:800;
    text-decoration:none!important;
}
@media (max-width: 991px){
    .sc-live-gifts-list{grid-template-columns:1fr;}
}
@media (max-width: 575px){
    .sc-live-gifts-block{padding:15px 12px;margin-top:16px;clip-path:none;border-radius:14px;}
    .sc-live-gifts-head{align-items:flex-start;flex-direction:column;margin-bottom:18px;}
    .sc-live-gifts-block:before{top:56px;left:12px;right:12px;}
    .sc-live-gift-item{clip-path:none;border-radius:12px;}
    .sc-live-gift-thumb{flex-basis:50px;width:50px;height:50px;}
    .sc-live-gift-thumb img{width:46px;height:46px;}
    .sc-live-gift-badge{display:none;}
}
