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

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

/* Polished my_gifts modal */
#my_gifts .modal-content {
	background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,248,255,0.98) 100%);
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 80px rgba(0,0,0,0.4);
	overflow: hidden;
}
#my_gifts .modal-header {
	border-bottom: 1px solid rgba(0,0,0,0.08);
	padding: 20px 24px;
	background: linear-gradient(135deg, rgba(240,240,255,0.6) 0%, rgba(255,255,255,0.3) 100%);
}
#my_gifts .modal-title {
	font-weight: 700;
	font-size: 22px;
	color: #1a1a2e;
}
#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, rgba(255,255,255,0.98) 0%, rgba(248,248,255,0.98) 100%);
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 80px rgba(0,0,0,0.4);
	overflow: hidden;
}
#inventory_modal .modal-header {
	border-bottom: 1px solid rgba(0,0,0,0.08);
	padding: 20px 24px;
	background: linear-gradient(135deg, rgba(240,240,255,0.6) 0%, rgba(255,255,255,0.3) 100%);
}
#inventory_modal .modal-title {
	font-weight: 700;
	font-size: 22px;
	color: #1a1a2e;
}
#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: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 16px;
	transition: all 0.3s ease;
}
.inventory-item:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	transform: translateY(-2px);
}
.inventory-item-inner {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}
.inventory-gift-image {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.inventory-gift-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.inventory-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.inventory-gift-name {
	margin: 0 0 6px 0;
	font-size: 17px;
	font-weight: 600;
	color: #1a1a2e;
}
.inventory-subjects {
	margin-bottom: 6px;
	color: #444;
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}
.inventory-subjects .subject {
	margin: 2px 0;
	text-align: left;
}
.inventory-subjects b {
	font-weight: 600;
	color: #1a1a2e;
}
.inventory-date {
	margin: 0;
	font-size: 12px;
	color: #888;
}
.inventory-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.btn-inventory {
	padding: 8px 16px;
	border: none;
	/* Блокировка повторного открытия подарка на карточке */
	.opening-disabled {
		pointer-events: none;
		opacity: 0.9;
		cursor: not-allowed;
	}

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

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

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

