/* Новый модал подтверждения открытия — slim dark */
#confirm_paid_open_modal .confirm-open-modal {
	width: 100%;
	border-radius: 8px;
	background-color: rgb(36, 39, 49) !important;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	border: 1px solid rgb(35, 39, 50);
	overflow: hidden;
}
#confirm_paid_open_modal .confirm-open-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px 0 24px;
	position: relative;
}
#confirm_paid_open_modal .confirm-open-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	color: #fff;
	text-transform: none;
	text-align: left;
}
#confirm_paid_open_modal .confirm-open-close {
	position: static;
	width: auto;
	height: auto;
	border: none;
	background: transparent;
	color: rgb(165, 169, 180);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
#confirm_paid_open_modal .confirm-open-close:hover { color: #fff; }
#confirm_paid_open_modal .confirm-open-body {
	padding: 16px 24px 8px 24px;
	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(251, 71, 75, 0.12);
	color: rgb(251, 71, 75);
	font-size: 40px;
	margin: 8px auto 14px auto;
	filter: none;
}
#confirm_paid_open_modal .confirm-open-question {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 8px;
}
#confirm_paid_open_modal .confirm-open-note {
	font-size: 14px;
	color: rgb(165, 169, 180);
}
#confirm_paid_open_modal .confirm-open-price {
	color: rgb(251, 71, 75);
	font-weight: 700;
}
#confirm_paid_open_modal .confirm-open-footer {
	display: flex;
	gap: 12px;
	justify-content: center;
	padding: 12px 24px 24px 24px;
}
#confirm_paid_open_modal .confirm-open-btn {
	min-width: 120px;
	height: auto;
	padding: 10px 18px;
	border-radius: 6px;
	font-weight: 600;
	line-height: normal;
	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: transparent;
	border-color: rgb(35, 39, 50);
	color: rgb(165, 169, 180);
}
#confirm_paid_open_modal .confirm-open-apply {
	background: rgb(251, 71, 75);
	border-color: rgb(251, 71, 75);
	color: #ffffff;
	box-shadow: none;
}
#confirm_paid_open_modal .confirm-open-apply:hover { filter: brightness(1.06); }
#confirm_paid_open_modal .confirm-open-btn:disabled { opacity: 0.65; cursor: not-allowed; }
#confirm_paid_open_modal .modal-content {
	background-color: rgb(36, 39, 49) !important;
	border: 1px solid rgb(35, 39, 50);
}
.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: transparent;
	color: rgb(165, 169, 180);
	background-image: none;
}
.gifts-main-block.plain-bg h2{color:#fff;}
.gifts-main-block.plain-bg > a[class^="icon"]{opacity:0.8;filter:brightness(1);}
.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: none;
	 background: rgb(36, 39, 49);
	 border: 1px solid rgb(35, 39, 50);
	 border-radius: 8px;
	 height: auto;
	 min-height: 260px;
	 padding: 0;
	 margin-top: 0;
	 transition: border-color 0.2s ease, transform 0.2s ease;
	 overflow: hidden;
	 text-decoration: none;
}
 #gifts .gift-block:hover, #gifts_not_open .gift-block:hover {
	 border-color: rgb(251, 71, 75);
	 box-shadow: 0 8px 24px rgba(251, 71, 75, 0.12);
	 transform: translateY(-2px);
}
 #gifts .gift-block .gift-meta,
 #gifts_not_open .gift-block .gift-meta {
	 display: flex;
	 align-items: center;
	 justify-content: space-between;
	 gap: 8px;
	 padding: 12px 14px;
	 background: rgb(27, 29, 36);
	 border-top: 1px solid rgb(35, 39, 50);
}
 #gifts .gift-block .gift-meta .gift-name,
 #gifts_not_open .gift-block .gift-meta .gift-name {
	 color: #fff;
	 font-weight: 600;
	 font-size: 14px;
	 flex: 1;
	 min-width: 0;
	 overflow: hidden;
	 text-overflow: ellipsis;
	 white-space: nowrap;
}
 #gifts .gift-block .gift-meta .gift-price,
 #gifts_not_open .gift-block .gift-meta .gift-price {
	 color: rgb(251, 71, 75);
	 font-weight: 700;
	 font-size: 14px;
	 white-space: nowrap;
}
 #gifts .gift-block div.gift-image-block, #gifts_not_open .gift-block div.gift-image-block {
	 height: 200px;
	 line-height: 200px;
	 text-align: center;
	 padding: 12px;
}
 #gifts .gift-block div.gift-image-block img, #gifts_not_open .gift-block div.gift-image-block img {
	 max-width: 100%;
	 max-height: 176px;
}
 #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-color: rgb(36, 39, 49) !important;
	 border: 1px solid rgb(35, 39, 50);
	 box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	 border-radius: 8px;
}
/* Centered modal for gift errors — slim dark theme */
#open_gift_result .modal-content {
	background-color: rgb(36, 39, 49) !important;
	border: 1px solid rgb(35, 39, 50);
	border-radius: 8px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	overflow: hidden;
}
#open_gift_result .modal-header {
	border-bottom: 1px solid rgb(35, 39, 50);
	padding: 20px 24px;
	background: transparent;
}
#open_gift_result .modal-title {
	font-weight: 700;
	font-size: 18px;
	color: #fff;
	text-align: left;
	width: auto;
	letter-spacing: normal;
}
#open_gift_result .close {
	opacity: 0.6;
	position: absolute;
	right: 16px;
	top: 16px;
	font-size: 32px;
	font-weight: 300;
	color: rgb(165, 169, 180);
	line-height: 1;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	cursor: pointer;
}
#open_gift_result .close:hover {
	opacity: 1;
	color: #fff;
}
#open_gift_result .modal-body {
	padding: 0 24px 24px 24px;
	color: rgb(165, 169, 180);
	font-size: 15px;
	text-align: center;
	background: transparent;
}
#open_gift_result .modal-freetext {
	font-size: 15px;
	color: rgb(165, 169, 180);
	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);
}

/* my_gifts modal — slim dark */
#my_gifts .modal-content {
	background-color: rgb(36, 39, 49) !important;
	border: 1px solid rgb(35, 39, 50);
	border-radius: 8px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	overflow: hidden;
}
#my_gifts .modal-header {
	border-bottom: 1px solid rgb(35, 39, 50);
	padding: 20px 24px;
	background: transparent;
}
#my_gifts .modal-title {
	font-weight: 700;
	font-size: 18px;
	color: #fff;
}
#my_gifts .close {
	opacity: 0.6;
	font-size: 28px;
	color: rgb(165, 169, 180);
}
#my_gifts .close:hover {
	opacity: 1;
	color: #fff;
}
#my_gifts .modal-body {
	padding: 20px 24px 24px 24px;
	max-height: 60vh;
	overflow-y: auto;
	color: rgb(165, 169, 180);
}
#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);
}

/* inventory modal — slim dark */
#inventory_modal .modal-content {
	background-color: rgb(36, 39, 49) !important;
	border: 1px solid rgb(35, 39, 50);
	border-radius: 8px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	overflow: hidden;
}
#inventory_modal .modal-header {
	border-bottom: 1px solid rgb(35, 39, 50);
	padding: 20px 24px;
	background: transparent;
}
#inventory_modal .modal-title {
	font-weight: 700;
	font-size: 18px;
	color: #fff;
}
#inventory_modal .close {
	opacity: 0.6;
	font-size: 28px;
	color: rgb(165, 169, 180);
}
#inventory_modal .close:hover {
	opacity: 1;
	color: #fff;
}
#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 — slim dark */
.inventory-item {
	background: rgb(27, 29, 36);
	border: 1px solid rgb(35, 39, 50);
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.inventory-item:hover {
	border-color: rgb(251, 71, 75);
	box-shadow: 0 4px 16px rgba(251, 71, 75, 0.1);
	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: #fff;
}
.inventory-subjects {
	margin-bottom: 6px;
	color: rgb(165, 169, 180);
	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: #fff;
}
.inventory-date {
	margin: 0;
	font-size: 12px;
	color: rgb(165, 169, 180);
}
.inventory-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.opening-disabled {
	pointer-events: none;
	opacity: 0.9;
	cursor: not-allowed;
}
.grid-locked {
	pointer-events: none;
}
.grid-locked .gift-grid-card:not(.flipped) {
	opacity: 0.45;
	filter: grayscale(40%);
	transition: opacity 150ms ease;
}
.grid-locked .gift-grid-card.flipped {
	pointer-events: auto;
	opacity: 1;
	filter: none;
	z-index: 20;
}
.btn-inventory {
	padding: 8px 16px;
	border: none;
	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 rgb(35, 39, 50);
	 padding: 14px 0;
	 display: flex;
	 align-items: center;
	 transition: background 0.2s ease;
}
 #my_gifts_area .opened-gift:hover {
	 background: rgba(251, 71, 75, 0.06);
	 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.25);
}
 #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: #fff;
	 font-weight: 600;
}
 #my_gifts_area .opened-gift .gift-info small {
	 color: rgb(165, 169, 180);
	 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: rgb(165, 169, 180);
	 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: 8px;
	 margin-bottom: 30px;
	 overflow: hidden;
	 background: rgb(36, 39, 49);
	 border: 1px solid rgb(35, 39, 50);
	 box-shadow: none;
 }
 .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: rgb(27, 29, 36);
	 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, rgb(36, 39, 49) 0%, rgb(27, 29, 36) 100%);
	border: 3px solid rgb(251, 71, 75);
	transform: rotateY(180deg);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(251, 71, 75, 0.25);
}
.gift-grid-result {
	text-align: center;
	padding: 15px;
	color: #fff;
}
.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: #fff;
	text-shadow: none;
}
@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;
	}
}

/* ===== Slim template theme ===== */
.gb-slim-hint {
	color: rgb(165, 169, 180);
	font-size: 0.875em;
}

.gifts-page-banner {
	margin-bottom: 0;
}

.gift-banner {
	background: rgb(36, 39, 49);
	border: 1px solid rgb(35, 39, 50);
	box-shadow: none;
}

.gift-banner-surface {
	background-color: rgb(36, 39, 49);
}

#gifts > p,
#gifts_not_open > p {
	color: rgb(165, 169, 180);
	text-shadow: none;
	font-size: 16px;
	font-weight: 600;
}

#gifts .gift-block,
#gifts_not_open .gift-block {
	background: rgb(36, 39, 49);
	border: 1px solid rgb(35, 39, 50);
	border-radius: 8px;
	height: auto;
	min-height: 260px;
	margin-top: 0;
	padding: 0;
	box-shadow: none;
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

#gifts .gift-block:hover,
#gifts_not_open .gift-block:hover {
	border-color: rgb(251, 71, 75);
	box-shadow: 0 8px 24px rgba(251, 71, 75, 0.12);
	transform: translateY(-2px);
}

#gifts .gift-block .gift-meta,
#gifts_not_open .gift-block .gift-meta {
	position: static;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	background: rgb(27, 29, 36);
	border-top: 1px solid rgb(35, 39, 50);
}

#gifts .gift-block .gift-name,
#gifts_not_open .gift-block .gift-name {
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#gifts .gift-block .gift-price,
#gifts_not_open .gift-block .gift-price {
	color: rgb(251, 71, 75);
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}

#gifts .gift-block div.gift-image-block,
#gifts_not_open .gift-block div.gift-image-block {
	height: 200px;
	line-height: 200px;
	padding: 12px;
}

#gifts .gift-block div.gift-image-block img,
#gifts_not_open .gift-block div.gift-image-block img {
	max-height: 176px;
}

.gift-open-count {
	background: rgba(251, 71, 75, 0.15);
	color: rgb(165, 169, 180);
	border: 1px solid rgba(251, 71, 75, 0.25);
}

.gift-open-count i {
	color: rgb(251, 71, 75);
}

.gift-grid-wrap {
	background: transparent;
}

.gift-grid-5x3 {
	background: rgb(27, 29, 36);
	border: 1px solid rgb(35, 39, 50);
	border-radius: 8px;
}

.gift-grid-result-title {
	color: rgb(251, 71, 75);
	font-weight: 700;
	text-shadow: none;
}

#my_gifts .modal-content,
#inventory_modal .modal-content,
#open_gift_result .modal-content,
#prize .modal-content {
	background: rgb(36, 39, 49);
	border: 1px solid rgb(35, 39, 50);
	border-radius: 8px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

#my_gifts .modal-header,
#inventory_modal .modal-header,
#open_gift_result .modal-header,
#prize .modal-header {
	border-bottom: 1px solid rgb(35, 39, 50);
	background: transparent;
	padding: 20px 24px;
}

#my_gifts .modal-title,
#inventory_modal .modal-title,
#open_gift_result .modal-title,
#prize .modal-title {
	color: #fff;
}

#my_gifts .modal-body,
#inventory_modal .modal-body,
#open_gift_result .modal-body,
#prize .modal-body {
	color: rgb(165, 169, 180);
	background: transparent;
}

#open_gift_result .modal-freetext {
	color: rgb(165, 169, 180);
}

.inventory-item {
	background: rgb(27, 29, 36);
	border: 1px solid rgb(35, 39, 50);
	border-radius: 8px;
}

.inventory-item:hover {
	border-color: rgba(251, 71, 75, 0.35);
}

.inventory-gift-name {
	color: #fff;
}

.inventory-date,
.inventory-subjects {
	color: rgb(165, 169, 180);
}

.btn-inventory {
	border-radius: 6px;
	font-weight: 600;
}

.btn-inventory.btn-activate {
	background: rgb(251, 71, 75);
	border-color: rgb(251, 71, 75);
	color: #fff;
}

.btn-inventory.btn-gift,
.btn-inventory.btn-send {
	background: transparent;
	border: 1px solid rgb(251, 71, 75);
	color: rgb(251, 71, 75);
}

.btn-inventory.btn-cancel {
	background: transparent;
	border: 1px solid rgb(35, 39, 50);
	color: rgb(165, 169, 180);
}

.gift-dialog {
	background: rgb(27, 29, 36);
	border: 1px solid rgb(35, 39, 50);
	border-radius: 8px;
}

.gift-user-input {
	background: rgb(36, 39, 49);
	border: 1px solid rgb(35, 39, 50);
	color: #fff;
	border-radius: 6px;
}

.opened-gift {
	background: rgb(27, 29, 36);
	border: 1px solid rgb(35, 39, 50);
	border-radius: 8px;
}

.opened-gift .gift-info h3 {
	color: #fff;
}

.opened-gift .gift-info small {
	color: rgb(165, 169, 180);
}

#confirm_paid_open_modal .confirm-open-modal {
	background: rgb(36, 39, 49);
	border: 1px solid rgb(35, 39, 50);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	border-radius: 8px;
}

#confirm_paid_open_modal .confirm-open-header {
	padding: 20px 24px 0;
}

#confirm_paid_open_modal .confirm-open-title {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	text-transform: none;
	margin: 0;
}

#confirm_paid_open_modal .confirm-open-close {
	position: static;
	width: auto;
	height: auto;
}

#confirm_paid_open_modal .confirm-open-body {
	padding: 16px 24px 8px;
}

#confirm_paid_open_modal .confirm-open-icon {
	background: rgba(251, 71, 75, 0.12);
	color: rgb(251, 71, 75);
	filter: none;
}

#confirm_paid_open_modal .confirm-open-question {
	color: #fff;
	font-size: 18px;
}

#confirm_paid_open_modal .confirm-open-note {
	color: rgb(165, 169, 180);
}

#confirm_paid_open_modal .confirm-open-footer {
	padding: 12px 24px 24px;
}

#confirm_paid_open_modal .confirm-open-cancel,
#confirm_paid_open_modal .confirm-open-apply {
	min-width: 120px;
	height: auto;
	line-height: normal;
	padding: 10px 18px;
	border-radius: 6px;
	font-weight: 600;
}

.gifts-main-block.plain-bg {
	background: transparent;
	color: rgb(165, 169, 180);
	padding: 0;
	margin-bottom: 0;
}

.gifts-main-block.plain-bg h2 {
	color: #fff;
}

.open-gifts-feed {
	background: rgb(36, 39, 49);
	border: 1px solid rgb(35, 39, 50);
}

.open-gift-item {
	background: rgb(27, 29, 36);
}

.open-time {
	color: rgb(165, 169, 180);
}

.gift-price {
	color: rgb(251, 71, 75);
}

/* Force slim dark — overrides legacy standart rules */
#gifts .gift-block,
#gifts_not_open .gift-block {
	background-color: rgb(36, 39, 49) !important;
	border: 1px solid rgb(35, 39, 50) !important;
}

#gifts .gift-block .gift-meta,
#gifts_not_open .gift-block .gift-meta {
	background: rgb(27, 29, 36) !important;
}

.modal#open_gift_result .modal-content,
.modal#my_gifts .modal-content,
.modal#inventory_modal .modal-content,
.modal#prize .modal-content,
.modal#confirm_paid_open_modal .modal-content {
	background-color: rgb(36, 39, 49) !important;
	color: rgb(165, 169, 180);
	border: 1px solid rgb(35, 39, 50);
}

.modal#open_gift_result .modal-title,
.modal#my_gifts .modal-title,
.modal#inventory_modal .modal-title,
.modal#prize .modal-title {
	color: #fff;
}

#my_gifts_area .opened-gift .gift-info h3 {
	color: #fff !important;
}

#my_gifts_area .opened-gift .gift-info,
#my_gifts_area .opened-gift .gift-info small,
#my_gifts_area .opened-gift .gift-info .subject,
#my_gifts_area .opened-gift .gift-info span {
	color: rgb(165, 169, 180) !important;
}
