#confirm_paid_open_modal .confirm-open-modal {
	width: 100%;
	border-radius: 18px;
	background: rgb(34, 33, 39);
	box-shadow: 0 18px 56px rgba(255,221,0,0.28);
	border: 1px solid #ffdd00;
	overflow: hidden;
}
#confirm_paid_open_modal .confirm-open-header {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 24px 0 24px;
	position: relative;
}
/* Сетка инвентаря */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.inventory-grid-card {
    perspective: 1000px;
    height: 320px;
}

.inventory-grid-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(255,221,0,0.2);
}

.inventory-grid-card:hover .inventory-grid-inner {
    transform: rotateY(180deg);
}

.inventory-grid-front,
.inventory-grid-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #ffdd00;
}

.inventory-grid-front {
    background: linear-gradient(135deg, rgba(34,34,44,0.95), rgba(20,20,30,0.98));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 0 25px rgba(255,221,0,0.4);
}

.inventory-grid-front img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 16px;
    filter: drop-shadow(0 6px 12px rgba(255,221,0,0.5));
}

.inventory-grid-meta {
    text-align: center;
    color: #ffdd00;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.inventory-grid-back {
    background: linear-gradient(135deg, rgba(40,40,50,0.98), rgba(30,30,40,0.98));
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    border: 2px solid #ffdd00;
    box-shadow: 0 0 30px rgba(255,221,0,0.6);
}

.inventory-grid-back h4 {
    color: #ffdd00;
    font-size: 18px;
    margin: 0 0 10px 0;
    text-align: center;
    font-weight: 800;
}

.inventory-subjects {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
    flex-grow: 1;
}

.inventory-date {
    font-size: 12px;
    color: #aaaaaa;
    text-align: center;
    margin: 8px 0;
}

.inventory-actions-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.inventory-actions-grid .btn-inventory {
    padding: 10px 16px;
    font-size: 14px;
    min-width: 110px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    .inventory-grid-card {
        height: 300px;
    }
    .inventory-grid-front img {
        width: 100px;
        height: 100px;
    }
}
#confirm_paid_open_modal .confirm-open-title {
	margin: 0 36px;
	font-size: 30px;
	line-height: 34px;
	font-weight: 900;
	letter-spacing: 0.3px;
	color: #ffdd00;
	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: #cccccc;
	font-size: 24px;
	line-height: 32px;
	cursor: pointer;
}
#confirm_paid_open_modal .confirm-open-close:hover { color: #ffdd00; }
#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(255,221,0,0.15);
	color: #ffdd00;
	font-size: 40px;
	margin: 8px auto 14px auto;
	filter: drop-shadow(0 6px 16px rgba(255,221,0,0.3));
}
#confirm_paid_open_modal .confirm-open-question {
	font-size: 20px;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 8px;
}
#confirm_paid_open_modal .confirm-open-note {
	font-size: 14px;
	color: #cccccc;
}
#confirm_paid_open_modal .confirm-open-price {
	color: #ffdd00;
	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: rgba(255,221,0,0.1);
	border-color: #ffdd00;
	color: #ffdd00;
}
#confirm_paid_open_modal .confirm-open-apply {
	background: #ffdd00;
	border-color: #ffdd00;
	color: #000000;
	box-shadow: 0 10px 24px rgba(255,221,0,0.35);
}
#confirm_paid_open_modal .confirm-open-apply:hover { filter: brightness(1.15); }
#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: rgb(34, 33, 39) url(../img/block-bg.jpg) no-repeat;
	 border-radius: 6px;
	 padding: 30px;
	 margin-bottom: 30px;
	 height: auto;
	 overflow: hidden;
	 position: relative;
}
.gifts-main-block.plain-bg{
	background:rgb(34, 33, 39);
	color:#ffdd00;
	background-image:none;
}
.gifts-main-block.plain-bg h2{color:#ffdd00;}
.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: #ffdd00;
	 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 #ffdd00;
	}
}
 .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 #ffdd00;
}
 .gifts-main-block .info-block > h3 {
	 color: #ffdd00;
	 text-shadow: 0 2px 4px rgba(255,221,0,0.4);
}
 .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, #ffb700 0%, #ffdd00 46%, #ffea00 100%);
	 box-shadow: 0 2px 4px 0 rgba(255,221,0,0.45);
	 border-radius: 3px;
	 text-transform: uppergift;
	 border: 0;
	 color: #000000;
	 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, #ffb700 0%, #ffdd00 46%, #ffea00 100%);
}
 .gifts-main-block button.open-gift[disabled] {
	 background-image: linear-gradient(135deg, rgba(255,183,0,0.53) 0%, rgba(255,221,0,0.47) 46%, rgba(255,234,0,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;
	 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: #ffdd00;
	 text-shadow: 0 2px 4px rgba(255,221,0,0.4);
	 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(255,221,0,0.15);
	 background: rgba(34,33,39,0.95);
	 border-radius: 12px;
	 height: 260px;
	 padding: 0 10px 10px 10px;
	 margin-top: 30px;
	 transition: all 0.3s ease;
	 border: 1px solid #ffdd00;
}
 #gifts .gift-block:hover, #gifts_not_open .gift-block:hover {
	 box-shadow: 0 8px 24px rgba(255,221,0,0.35);
	 transform: translateY(-5px);
}
 #gifts .gift-block span, #gifts_not_open .gift-block span {
	 display: block;
	 color: #e6d000;
	 height: 40px;
	 position: absolute;
	 bottom: 0;
	 line-height: 44px;
	 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(34, 33, 39, 0) 0%, rgb(53 51 46 / 2%) 100%);
	 left: 139px;
	 padding-left: 10px;
	 padding-right: 42px;
	 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, #ffdd00 0%, #ccaa00 46%, #b89300 100%);
	 right: 0;
	 font-weight: bold;
	 text-align: center;
	 color: #000;
}
 #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(255,221,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(255,221,0,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(255,221,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: rgb(34,33,39) url(../img/modal-bg.jpg) no-repeat top center;
	 border: 1px solid #ffdd00;
	 box-shadow: 0 0 30px rgba(255,221,0,0.4);
	 border-radius: 6px;
}
#open_gift_result .modal-content {
	background: rgb(34,33,39);
	border: 1px solid #ffdd00;
	border-radius: 24px;
	box-shadow: 0 8px 32px rgba(255,221,0,0.3);
	overflow: hidden;
}
#open_gift_result .modal-header {
	border-bottom: none;
	padding: 28px 28px 16px 28px;
	background: rgb(34,33,39);
}
#open_gift_result .modal-title {
	font-weight: 800;
	font-size: 24px;
	color: #ffdd00;
	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: #cccccc;
	line-height: 1;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	cursor: pointer;
}
#open_gift_result .close:hover {
	opacity: 0.7;
	color: #ffdd00;
}
#open_gift_result .modal-body {
	padding: 0 32px 36px 32px;
	color: #cccccc;
	font-size: 15px;
	text-align: center;
	background: rgb(34,33,39);
}
#open_gift_result .modal-freetext {
	font-size: 15px; 
	color: #cccccc; 
	margin: 0 0 16px 0; 
	line-height: 1.6;
}

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

#my_gifts .modal-content {
	background: linear-gradient(135deg, rgba(34,33,39,0.98) 0%, rgba(40,40,50,0.98) 100%);
	border: 1px solid #ffdd00;
	border-radius: 16px;
	/* box-shadow: 0 24px 80px rgba(255,221,0,0.4); */
	overflow: hidden;
}
#my_gifts .modal-header {
	border-bottom: 1px solid rgba(255,221,0,0.2);
	padding: 20px 24px;
	background: linear-gradient(135deg, rgba(50,50,70,0.6) 0%, rgba(34,33,39,0.3) 100%);
}
#my_gifts .modal-title {
	font-weight: 700;
	font-size: 22px;
	color: #ffdd00;
}
#my_gifts .close {
	opacity: 0.6;
	font-size: 28px;
	color: #cccccc;
}
#my_gifts .close:hover {
	opacity: 1;
	color: #ffdd00;
}
#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(255,221,0,0.1);
	border-radius: 4px;
}
#my_gifts .modal-body::-webkit-scrollbar-thumb {
	background: #ffdd00;
	border-radius: 4px;
}
#my_gifts .modal-body::-webkit-scrollbar-thumb:hover {
	background: #ccaa00;
}

#inventory_modal .modal-content {
	background: linear-gradient(135deg, rgba(34,33,39,0.98) 0%, rgba(40,40,50,0.98) 100%);
	border: 1px solid #ffdd00;
	border-radius: 16px;
	/* box-shadow: 0 24px 80px rgba(255,221,0,0.4); */
	overflow: hidden;
}
#inventory_modal .modal-header {
	border-bottom: 1px solid rgba(255,221,0,0.2);
	padding: 20px 24px;
	background: linear-gradient(135deg, rgba(50,50,70,0.6) 0%, rgba(34,33,39,0.3) 100%);
}
#inventory_modal .modal-title {
	font-weight: 700;
	font-size: 22px;
	color: #ffdd00;
}
#inventory_modal .close {
	opacity: 0.6;
	font-size: 28px;
	color: #cccccc;
}
#inventory_modal .close:hover {
	opacity: 1;
	color: #ffdd00;
}
#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(255,221,0,0.1);
	border-radius: 4px;
}
#inventory_modal .modal-body::-webkit-scrollbar-thumb {
	background: #ffdd00;
	border-radius: 4px;
}
#inventory_modal .modal-body::-webkit-scrollbar-thumb:hover {
	background: #ccaa00;
}

.inventory-item {
	background: rgba(40,40,50,0.95);
	border: 1px solid #ffdd00;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 16px;
	transition: all 0.3s ease;
}
.inventory-item:hover {
	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(255,221,0,0.2); */
}
.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: #ffdd00;
}
.inventory-subjects {
	margin-bottom: 6px;
	color: #cccccc;
	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: #ffdd00;
}
.inventory-date {
	margin: 0;
	font-size: 12px;
	color: #aaaaaa;
}
.inventory-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.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, #ffdd00 0%, #ccaa00 100%);
	color: #000;
}
.btn-activate:hover {
	background: linear-gradient(135deg, #ccaa00 0%, #b89300 100%);
	transform: scale(1.03);
}
.btn-gift {
	background: linear-gradient(135deg, #ffdd00 0%, #ccaa00 100%);
	color: #000;
}
.btn-gift:hover {
	background: linear-gradient(135deg, #ccaa00 0%, #b89300 100%);
	transform: scale(1.03);
}
.btn-send {
	background: linear-gradient(135deg, #ffdd00 0%, #ccaa00 100%);
	color: #000;
}
.btn-send:hover {
	background: linear-gradient(135deg, #ccaa00 0%, #b89300 100%);
}
.btn-cancel {
	background: rgba(255,221,0,0.2);
	color: #ffdd00;
	border: 1px solid #ffdd00;
}
.btn-cancel:hover {
	background: rgba(255,221,0,0.3);
}
.gift-dialog {
	display: none;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(255,221,0,0.2);
}
.gift-dialog-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.gift-dialog-content label {
	font-size: 13px;
	font-weight: 600;
	color: #ffdd00;
	margin: 0;
}
.gift-user-input {
	padding: 8px 12px;
	border: 1px solid #ffdd00;
	border-radius: 6px;
	font-size: 14px;
	outline: none;
	background: rgba(34,33,39,0.8);
	color: #ffffff;
	transition: border 0.2s ease;
}
.gift-user-input:focus {
	border-color: #ffdd00;
	box-shadow: 0 0 10px rgba(255,221,0,0.4);
}
.gift-dialog-actions {
	display: flex;
	gap: 8px;
}

 #prize .modal-content h4 {
	 text-align: center;
	 color: #ffdd00;
	 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: #ffdd00;
}
 #prize .modal-content p {
	 font-size: 14px;
	 color: #cccccc;
	 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(255,221,0,0.2);
	 padding: 14px 0;
	 display: flex;
	 align-items: center;
	 transition: background 0.2s ease;
}
 #my_gifts_area .opened-gift:hover {
	 background: rgba(255,221,0,0.05);
	 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(255,221,0,0.2);
}
 #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: #ffdd00;
	 font-weight: 600;
}
 #my_gifts_area .opened-gift .gift-info small {
	 color: #cccccc;
	 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: #cccccc;
	 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(255,221,0,0.2);
	 padding: 14px;
	 display: flex;
	 align-items: center;
	 transition: all 0.2s ease;
	 background: rgba(34,33,39,0.95);
	 border-radius: 8px;
	 margin-bottom: 10px;
}
 #live_open_gifts_profile .opened-gift:hover {
	 background: rgba(255,221,0,0.1);
	 box-shadow: 0 2px 8px rgba(255,221,0,0.2);
	 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(255,221,0,0.2);
}
 #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: #ffdd00;
	 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: #cccccc;
	 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: rgba(34,33,39,0.95);
	 margin: 15px;
	 border-radius: 12px;
	 padding: 9px;
	 text-align: center;
	 /* box-shadow: 0 6px 15px rgba(255,221,0,0.3); */
	 transition: all 0.3s ease;
	 vertical-align: top;
	 border: 1px solid #ffdd00;
}
 #live_open_gifts_profile .profile-gift-card:hover {
	 transform: translateY(-5px) scale(1.02);
}
 #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: #ffdd00;
	 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, #ffdd00, #ccaa00);
	 color: #000;
	 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: #ffdd00;
	 font-size: 11px;
}
 #live_open_gifts_profile .gift-subjects {
	 color: #ffdd00;
	 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%;
    height: 190px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1.8px solid #ffdd00;
}


/* Ссылка на весь баннер */
.gift-banner-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
}

/* Фон с плавной сменой */
.gift-banner-surface {
    position: absolute;
    inset: 0;
    background: #0a0a1a;
    background-size: cover;
    background-position: center;
    filter: brightness(0.85) contrast(1.1);
}

.gift-banner-surface::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(10,10,30,0.9) 0%, 
        rgba(20,20,50,0.6) 50%, 
        transparent 100%
    );
}

/* Контент */
.gift-banner-content {
    position: absolute;
    inset: 0;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}

.gift-banner-text h3 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
    text-shadow: 
        0 0 20px #ffdd00,
        0 3px 10px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}

.gift-banner-text h3 span { color: #ffdd00; }

.gift-banner-text p {
    color: #cccccc;
    font-size: 15px;
    margin: 10px 0 0;
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

/* ТАЙМЕР — НЕОНОВЫЙ КИБЕРПАНК */
.gift-banner-timer {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(16px);
    padding: 12px 20px;
    border-radius: 18px;
    border: 1.5px solid #ffdd00;
    align-self: flex-start;
}


.gift-banner-timer .timer-label {
    color: #ffdd00;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px #ffdd00;
}

.gift-banner-timer .timer-display {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    font-family: 'Orbitron', 'Courier New', monospace;
    letter-spacing: 4px;
    text-shadow: 
        0 0 20px #ffdd00,
        0 0 40px #ffdd00,
        0 0 60px #ffdd00;
    animation: timerFlicker 3s infinite alternate;
}

@keyframes timerFlicker {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.92; }
}

/* Иконка подарка — пульсирующая неоновая */
.gift-banner-glow-icon {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 80px;
    height: 80px;
    z-index: 6;
}

.gift-icon-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px #ffdd00);
    animation: giftRotate 12s linear infinite, giftPulse 2.5s ease-in-out infinite;
}

@keyframes giftRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes giftPulse {
    0%, 100% { filter: drop-shadow(0 0 30px #ffdd00); }
    50%      { filter: drop-shadow(0 0 60px #ffdd00) brightness(1.3); }
}

/* Ховер эффект */
.gift-banner:hover {
border: 3px solid #ffff00;

}

 .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: #ffdd00;
	 padding: 3px 8px;
	 border-radius: 12px;
	 font-size: 12px;
	 display: flex;
	 align-items: center;
	 gap: 5px;
	 height: 30px;
	 border: 1px solid #ffdd00;
}
 .gift-open-count i {
	 color: #ffdd00;
	 font-size: 10px;
}
 .gift-image-block {
	 position: relative;
}
 .open-gifts-feed {
	 background: rgba(34,33,39,0.95);
	 border-radius: 5px;
	 padding: 15px;
	 margin-bottom: 20px;
	 border: 1px solid #ffdd00;
}
 .open-gifts-feed h3 {
	 margin-top: 0;
	 margin-bottom: 15px;
	 color: #ffdd00;
}
 .open-gift-item {
	 background: rgba(255,221,0,0.05);
	 border-radius: 5px;
	 padding: 10px;
	 margin-bottom: 10px;
	 border: 1px solid rgba(255,221,0,0.2);
}
 .open-gift-header {
	 display: flex;
	 justify-content: space-between;
	 align-items: center;
	 margin-bottom: 10px;
}
 .user-info {
	 display: flex;
	 align-items: center;
	 color: #ffdd00;
	 text-decoration: none;
}
 .user-avatar {
	 width: 30px;
	 height: 30px;
	 border-radius: 50%;
	 margin-right: 10px;
}
 .open-time {
	 color: #cccccc;
	 font-size: 12px;
}
 .gift-info {
	 display: flex;
	 align-items: center;
	 margin-bottom: 10px;
}
 .gift-link {
	 display: flex;
	 align-items: center;
	 color: #ffdd00;
	 text-decoration: none;
}
 .gift-image {
	 width: 40px;
	 height: 40px;
	 margin-right: 10px;
}
 .gift-name {
	 font-weight: bold;
	 margin-right: 10px;
}
 .gift-price {
	 color: #ffdd00;
	 font-weight: bold;
}
 .gift-prizes {
	 background: rgba(255,221,0,0.1);
	 border-radius: 5px;
	 padding: 8px;
}
 .gift-prize-item {
	 color: #ffffff;
	 font-size: 13px;
	 margin-bottom: 5px;
	 display: flex;
	 align-items: center;
}
 .gift-prize-item i {
	 color: #ffdd00;
	 margin-right: 8px;
	 font-size: 12px;
}
 .gift-prize-item:last-child {
	 margin-bottom: 0;
}

.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.9);
	border: 2px solid #ffdd00;
	box-shadow: 0 0 20px rgba(255,221,0,0.4);
}
.gift-card-back {
	background: rgba(20,22,28,0.95);
	border: 2px solid #ffdd00;
	transform: rotateY(180deg);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 30px rgba(255,221,0,0.5);
}
.gift-meta {
	position: absolute;
	bottom: 8px; left: 8px; right: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #ffdd00;
}
.gift-result { text-align: center; color: #ffdd00; }
.gift-result-image img { max-width: 60%; height: auto; margin-bottom: 8px; }

.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(34, 34, 44, 0.95) 0%, rgba(20, 20, 30, 0.98) 100%);
	border: 3px solid #ffdd00;
	display: flex;
	align-items: center;
	justify-content: center;
	/* box-shadow: 0 8px 32px rgba(255,221,0,0.4); */
	position: relative;
}
.gift-grid-card[data-gift-color="1"] .gift-grid-front {
	border-color: #6b777c;
	/* box-shadow: 0 0 20px rgba(255,221,0,0.7), 0 0 40px rgba(255,221,0,0.4), inset 0 0 30px rgba(255,221,0,0.15); */
}
.gift-grid-card[data-gift-color="2"] .gift-grid-front {
	border-color: #ffdd00;
	/* box-shadow: 0 0 20px rgba(255,221,0,0.7), 0 0 40px rgba(255,221,0,0.4), inset 0 0 30px rgba(255,221,0,0.15); */
}
.gift-grid-card[data-gift-color="3"] .gift-grid-front {
	border-color: #ff0000;
	/* box-shadow: 0 0 20px rgba(255,221,0,0.7), 0 0 40px rgba(255,221,0,0.4), inset 0 0 30px rgba(255,221,0,0.15); */
}
.gift-grid-card[data-gift-color="4"] .gift-grid-front {
	border-color: #ed00ff;
	/* box-shadow: 0 0 20px rgba(255,221,0,0.7), 0 0 40px rgba(255,221,0,0.4), inset 0 0 30px rgba(255,221,0,0.15); */
}
.gift-grid-card[data-gift-color="5"] .gift-grid-front {
	border-color: #1acaff;
	/* box-shadow: 0 0 20px rgba(255,221,0,0.7), 0 0 40px rgba(255,221,0,0.4), inset 0 0 30px rgba(255,221,0,0.15); */
}
.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(255,221,0,0.5)); */
	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(34,34,39,0.98) 0%, rgba(40,40,50,0.98) 100%);
	border: 3px solid #ffdd00;
	transform: rotateY(180deg);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 32px rgba(255,221,0,0.5), 0 0 30px rgba(255,221,0,0.6);
}
.gift-grid-result {
	text-align: center;
	padding: 15px;
	color: #ffdd00;
}
.gift-grid-result-image img {
	max-width: 85%;
	max-height: 70px;
	margin-bottom: 10px;
	filter: drop-shadow(0 2px 8px rgba(255,221,0,0.3));
}
.gift-grid-result-title {
	font-size: 13px;
	font-weight: bold;
	color: #ffdd00;
	text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
@media (max-width: 768px) {
	.gift-grid-5x3 {
		grid-template-columns: repeat(2, 103px);
		justify-content: center;
		column-gap: 10px;
		row-gap: 6px;
		padding: 6px 8px;
		margin-bottom: 10px;
	}
}