/* استایل‌های جعبه‌های کادو */

.prize-box-wrapper {
    perspective: 1000px;
    height: 380px;
    overflow: hidden;
}

.prize-box {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.prize-box-wrapper:hover .prize-box {
    transform: translateY(-20px) scale(1.05);
}

/* جعبه کادو */
.gift-box {
    position: absolute;
    width: 100%;
    height: 260px;
    bottom: 0;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.prize-box-wrapper:hover .gift-box {
    transform: translateY(-30px) rotateX(-20deg);
    opacity: 0;
}

/* بدنه جعبه */
.gift-box-body {
    position: relative;
    width: 100%;
    height: 180px;
    background: 
        linear-gradient(135deg, #cc6e20 0%, #b85d1a 25%, #cc6e20 50%, #b85d1a 75%, #cc6e20 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    background-size: 100% 100%, 200% 100%;
    border-radius: 8px 8px 4px 4px;
    box-shadow: 
        0 15px 40px rgba(204, 110, 32, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(204, 110, 32, 0.3),
        inset 0 -15px 25px rgba(0, 0, 0, 0.4),
        inset 0 15px 25px rgba(255, 255, 255, 0.15),
        inset -2px 0 10px rgba(0, 0, 0, 0.2),
        inset 2px 0 10px rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transform: translateZ(0);
    border: 1px solid rgba(184, 93, 26, 0.3);
}

.gift-box-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        transparent 100%);
    border-radius: 8px 8px 4px 4px;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.gift-box-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    border-radius: 8px 8px 4px 4px;
}

/* درب جعبه */
.gift-box-lid {
    position: absolute;
    width: 100%;
    height: 80px;
    top: -80px;
    background: 
        linear-gradient(135deg, #d67a2a 0%, #cc6e20 25%, #d67a2a 50%, #cc6e20 75%, #d67a2a 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%, rgba(255, 255, 255, 0.12) 100%);
    background-size: 100% 100%, 200% 100%;
    border-radius: 8px 8px 0 0;
    box-shadow: 
        0 -8px 25px rgba(0, 0, 0, 0.4),
        0 -2px 10px rgba(204, 110, 32, 0.4),
        0 0 20px rgba(204, 110, 32, 0.3),
        inset 0 8px 20px rgba(255, 255, 255, 0.2),
        inset -2px 0 8px rgba(0, 0, 0, 0.2),
        inset 2px 0 8px rgba(255, 255, 255, 0.15);
    transform-origin: bottom;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(15px);
    z-index: 5;
    border: 1px solid rgba(184, 93, 26, 0.3);
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.gift-box-lid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    border-radius: 8px 8px 0 0;
    animation: lidShimmer 3s ease-in-out infinite;
}

@keyframes lidShimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.prize-box-wrapper:hover .gift-box-lid {
    transform: translateZ(15px) rotateX(-130deg);
}

.gift-box-lid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        transparent 100%);
    border-radius: 8px 8px 0 0;
}

/* روبان عمودی - روی بدنه */
.gift-ribbon-vertical {
    position: absolute;
    width: 24px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: 
        linear-gradient(180deg, #067883 0%, #055a66 30%, #067883 50%, #055a66 70%, #067883 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(255, 255, 255, 0.2) 100%);
    background-size: 100% 100%, 200% 100%;
    box-shadow: 
        0 0 15px rgba(6, 120, 131, 0.6),
        0 0 8px rgba(6, 120, 131, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.15),
        inset -2px 0 8px rgba(0, 0, 0, 0.2),
        inset 2px 0 8px rgba(255, 255, 255, 0.2);
    z-index: 2;
    border-left: 1px solid rgba(5, 90, 102, 0.5);
    border-right: 1px solid rgba(5, 90, 102, 0.5);
}

/* روبان افقی - روی بدنه */
.gift-ribbon-horizontal {
    position: absolute;
    width: 100%;
    height: 24px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: 
        linear-gradient(90deg, #067883 0%, #055a66 30%, #067883 50%, #055a66 70%, #067883 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(255, 255, 255, 0.2) 100%);
    background-size: 100% 100%, 100% 200%;
    box-shadow: 
        0 0 15px rgba(6, 120, 131, 0.6),
        0 0 8px rgba(6, 120, 131, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.15),
        inset 0 -2px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 8px rgba(255, 255, 255, 0.2);
    z-index: 2;
    border-top: 1px solid rgba(5, 90, 102, 0.5);
    border-bottom: 1px solid rgba(5, 90, 102, 0.5);
}

/* پاپیون (گره روبان) - روی بدنه */
.gift-bow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    z-index: 3;
}

.bow-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #067883 0%, #044a55 50%, #067883 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(6, 120, 131, 0.7),
        0 0 10px rgba(6, 120, 131, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.25),
        inset -2px -2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(4, 74, 85, 0.4);
}

.bow-loop {
    position: absolute;
    width: 28px;
    height: 45px;
    background: 
        linear-gradient(135deg, #067883 0%, #055a66 30%, #067883 50%, #055a66 70%, #067883 100%),
        radial-gradient(ellipse at top, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
    background-size: 100% 100%, 100% 100%;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 
        0 0 15px rgba(6, 120, 131, 0.6),
        0 0 8px rgba(6, 120, 131, 0.4),
        inset 0 0 12px rgba(255, 255, 255, 0.2),
        inset -1px 0 6px rgba(0, 0, 0, 0.2),
        inset 1px 0 6px rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(5, 90, 102, 0.4);
}

.bow-loop-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-20deg);
}

.bow-loop-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(20deg);
}

.prize-box-wrapper:hover .bow-loop-left {
    animation: bowWiggleLeft 0.6s ease-in-out;
}

.prize-box-wrapper:hover .bow-loop-right {
    animation: bowWiggleRight 0.6s ease-in-out 0.1s;
}

@keyframes bowWiggleLeft {
    0%, 100% { transform: translateY(-50%) rotate(-20deg); }
    25% { transform: translateY(-50%) rotate(-30deg) scale(1.1); }
    50% { transform: translateY(-50%) rotate(-10deg) scale(1.05); }
    75% { transform: translateY(-50%) rotate(-25deg) scale(1.1); }
}

@keyframes bowWiggleRight {
    0%, 100% { transform: translateY(-50%) rotate(20deg); }
    25% { transform: translateY(-50%) rotate(30deg) scale(1.1); }
    50% { transform: translateY(-50%) rotate(10deg) scale(1.05); }
    75% { transform: translateY(-50%) rotate(25deg) scale(1.1); }
}

/* محتوای جایزه */
.prize-content {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(40px) scale(0.8);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    pointer-events: none;
    /* بهبود رندرینگ متن */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.prize-box-wrapper:hover .prize-content {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    /* بهبود وضوح متن در حالت hover */
    will-change: auto;
}

/* کارت تصویر جایزه */
.prize-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: visible;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(204, 110, 32, 0.5),
        0 0 70px rgba(6, 120, 131, 0.4),
        inset 0 0 25px rgba(0, 0, 0, 0.3);
    border: 3px solid;
    border-image: linear-gradient(135deg, rgba(204, 110, 32, 0.6), rgba(6, 120, 131, 0.6)) 1;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(204, 110, 32, 0.15) 0%, 
        rgba(6, 120, 131, 0.15) 100%);
    border-radius: 13px;
    z-index: 1;
    pointer-events: none;
}

.prize-image {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    background: rgba(15, 23, 42, 0.3);
    padding: 8px;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 15px rgba(0, 0, 0, 0.2);
}

.prize-box-wrapper:hover .prize-image {
    transform: scale(1.08);
}

.prize-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(204, 110, 32, 0.3) 0%, 
        rgba(6, 120, 131, 0.2) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.prize-box-wrapper:hover .prize-glow {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* اطلاعات جایزه */
.prize-info {
    text-align: center;
    padding: 0 8px;
    /* بهبود وضوح متن */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translateZ(0);
}

.prize-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #cc6e20;
    margin-bottom: 8px;
    /* کاهش text-shadow برای وضوح بیشتر */
    text-shadow: 0 1px 3px rgba(204, 110, 32, 0.2);
    transition: all 0.3s ease;
    /* بهبود وضوح متن */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translateZ(0);
}

.prize-box-wrapper:hover .prize-name {
    color: #d67a2a;
    /* حذف scale برای جلوگیری از تار شدن */
    transform: translateZ(0);
    text-shadow: 0 1px 4px rgba(214, 122, 42, 0.25);
}

.prize-description {
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.6;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    /* بهبود وضوح متن */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translateZ(0);
}

/* افکت درخشش */
.prize-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    animation: shineSweep 3s ease-in-out infinite;
}

.prize-box-wrapper:hover .prize-shine {
    opacity: 1;
}

@keyframes shineSweep {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(0%) translateY(0%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* انیمیشن ورود جعبه‌ها */
.prize-box-wrapper {
    animation: boxEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.prize-box-wrapper:nth-child(1) {
    animation-delay: 0.1s;
}

.prize-box-wrapper:nth-child(2) {
    animation-delay: 0.3s;
}

.prize-box-wrapper:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes boxEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal برای نمایش جایزه در موبایل */
.prize-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease-out;
}

.prize-modal.active {
    display: flex;
}

.prize-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.prize-modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(204, 110, 32, 0.4),
        0 0 80px rgba(6, 120, 131, 0.3);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-image: linear-gradient(135deg, rgba(204, 110, 32, 0.5), rgba(6, 120, 131, 0.5)) 1;
    overflow-y: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

.prize-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(204, 110, 32, 0.2);
    border: 2px solid rgba(204, 110, 32, 0.4);
    color: #cc6e20;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.prize-modal-close:hover {
    background: rgba(204, 110, 32, 0.4);
    border-color: rgba(204, 110, 32, 0.6);
    transform: rotate(90deg) scale(1.1);
}

.prize-modal-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(204, 110, 32, 0.3);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-image: linear-gradient(135deg, rgba(204, 110, 32, 0.4), rgba(6, 120, 131, 0.4)) 1;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.4));
}

.prize-modal-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(204, 110, 32, 0.3) 0%, 
        rgba(6, 120, 131, 0.2) 50%, 
        transparent 100%);
    opacity: 0.6;
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

.prize-modal-info {
    text-align: center;
}

.prize-modal-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #cc6e20;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(204, 110, 32, 0.3);
}

.prize-modal-description {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.7;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    /* بهینه‌سازی عملکرد برای موبایل - جلوگیری از لرزش */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .prize-box-wrapper {
        height: 200px;
        margin-bottom: 0;
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 800px;
    }
    
    .gift-box {
        height: 160px;
        will-change: transform;
        transform: translateZ(0);
    }
    
    .gift-box-body {
        height: 120px;
        will-change: transform;
        transform: translateZ(0);
        /* بهبود gradient و رنگ برای واقعی‌تر شدن */
        background: 
            linear-gradient(135deg, #cc6e20 0%, #b85d1a 20%, #cc6e20 40%, #d67a2a 50%, #cc6e20 60%, #b85d1a 80%, #cc6e20 100%),
            linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%, rgba(255, 255, 255, 0.12) 100%);
        background-size: 100% 100%, 200% 100%;
        border-radius: 10px 10px 6px 6px;
        /* بهبود shadow برای عمق بیشتر و واقعی‌تر */
        box-shadow: 
            0 12px 35px rgba(204, 110, 32, 0.45),
            0 6px 18px rgba(0, 0, 0, 0.35),
            0 0 20px rgba(204, 110, 32, 0.25),
            inset 0 -12px 20px rgba(0, 0, 0, 0.35),
            inset 0 12px 20px rgba(255, 255, 255, 0.12),
            inset -3px 0 12px rgba(0, 0, 0, 0.25),
            inset 3px 0 12px rgba(255, 255, 255, 0.1);
        border: 1.5px solid rgba(184, 93, 26, 0.4);
    }
    
    /* غیرفعال کردن انیمیشن shimmer در موبایل */
    .gift-box-body::before {
        animation: none !important;
        /* اضافه کردن highlight ثابت برای واقعی‌تر شدن */
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.08) 30%,
            rgba(255, 255, 255, 0.12) 50%,
            rgba(255, 255, 255, 0.08) 70%,
            transparent 100%);
        opacity: 0.6;
    }
    
    .gift-box-lid {
        height: 50px;
        top: -50px;
        will-change: transform;
        transform: translateZ(18px);
        /* بهبود gradient و رنگ برای واقعی‌تر شدن */
        background: 
            linear-gradient(135deg, #d67a2a 0%, #cc6e20 20%, #d67a2a 40%, #e0883a 50%, #d67a2a 60%, #cc6e20 80%, #d67a2a 100%),
            linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(255, 255, 255, 0.15) 100%);
        background-size: 100% 100%, 200% 100%;
        border-radius: 10px 10px 0 0;
        /* بهبود shadow برای عمق بیشتر */
        box-shadow: 
            0 -10px 28px rgba(0, 0, 0, 0.4),
            0 -3px 12px rgba(204, 110, 32, 0.35),
            0 0 18px rgba(204, 110, 32, 0.25),
            inset 0 8px 18px rgba(255, 255, 255, 0.18),
            inset -3px 0 10px rgba(0, 0, 0, 0.25),
            inset 3px 0 10px rgba(255, 255, 255, 0.15);
        border: 1.5px solid rgba(184, 93, 26, 0.4);
        border-bottom: 2px solid rgba(0, 0, 0, 0.25);
    }
    
    /* غیرفعال کردن انیمیشن lidShimmer در موبایل */
    .gift-box-lid::before {
        animation: none !important;
        /* اضافه کردن highlight ثابت */
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.1) 30%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.1) 70%,
            transparent 100%);
        opacity: 0.7;
    }
    
    .gift-bow {
        /* قرار دادن پاپیون در وسط بدنه جعبه (نه زیر درب) */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
        will-change: transform;
        z-index: 4;
    }
    
    .bow-center {
        width: 24px;
        height: 24px;
        /* بهبود shadow برای واقعی‌تر شدن */
        box-shadow: 
            0 0 18px rgba(6, 120, 131, 0.65),
            0 0 10px rgba(6, 120, 131, 0.5),
            inset 0 0 12px rgba(255, 255, 255, 0.25),
            inset -2px -2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .bow-loop {
        width: 22px;
        height: 36px;
        /* بهبود shadow برای واقعی‌تر شدن */
        box-shadow: 
            0 0 12px rgba(6, 120, 131, 0.55),
            0 0 6px rgba(6, 120, 131, 0.4),
            inset 0 0 10px rgba(255, 255, 255, 0.2),
            inset -1px 0 6px rgba(0, 0, 0, 0.2),
            inset 1px 0 6px rgba(255, 255, 255, 0.25);
    }
    
    .gift-ribbon-vertical {
        width: 18px;
        /* بهبود shadow برای واقعی‌تر شدن */
        box-shadow: 
            0 0 12px rgba(6, 120, 131, 0.55),
            0 0 6px rgba(6, 120, 131, 0.4),
            inset 0 0 12px rgba(255, 255, 255, 0.15),
            inset -2px 0 8px rgba(0, 0, 0, 0.2),
            inset 2px 0 8px rgba(255, 255, 255, 0.2);
    }
    
    .gift-ribbon-horizontal {
        height: 18px;
        /* بهبود shadow برای واقعی‌تر شدن */
        box-shadow: 
            0 0 12px rgba(6, 120, 131, 0.55),
            0 0 6px rgba(6, 120, 131, 0.4),
            inset 0 0 12px rgba(255, 255, 255, 0.15),
            inset 0 -2px 8px rgba(0, 0, 0, 0.2),
            inset 0 2px 8px rgba(255, 255, 255, 0.2);
    }
    
    .prize-content {
        display: none !important;
    }
    
    .prize-box-wrapper:hover .prize-box {
        transform: none;
    }
    
    .prize-box-wrapper:hover .gift-box {
        transform: none;
        opacity: 1;
    }
    
    .prize-box-wrapper:hover .gift-box-lid {
        transform: translateZ(18px) rotateX(0deg);
    }
    
    /* بهبود افکت active برای واقعی‌تر شدن */
    .prize-box-wrapper:active .prize-box {
        transform: scale(0.96);
    }
    
    .prize-box-wrapper:active .gift-box-body {
        box-shadow: 
            0 8px 25px rgba(204, 110, 32, 0.4),
            0 4px 12px rgba(0, 0, 0, 0.3),
            0 0 15px rgba(204, 110, 32, 0.2),
            inset 0 -10px 18px rgba(0, 0, 0, 0.3),
            inset 0 10px 18px rgba(255, 255, 255, 0.1),
            inset -2px 0 10px rgba(0, 0, 0, 0.2),
            inset 2px 0 10px rgba(255, 255, 255, 0.08);
    }
    
    .prize-box-wrapper:active .gift-box-lid {
        box-shadow: 
            0 -8px 22px rgba(0, 0, 0, 0.35),
            0 -2px 8px rgba(204, 110, 32, 0.3),
            0 0 15px rgba(204, 110, 32, 0.2),
            inset 0 6px 15px rgba(255, 255, 255, 0.15),
            inset -2px 0 8px rgba(0, 0, 0, 0.2),
            inset 2px 0 8px rgba(255, 255, 255, 0.12);
    }
    
    .prize-image-container {
        height: 200px;
    }
    
    /* غیرفعال کردن انیمیشن‌های infinite در موبایل */
    .prize-shine {
        animation: none !important;
    }
    
    .prize-glow {
        animation: none !important;
    }
    
    .prize-box-wrapper:hover .prize-glow {
        animation: none !important;
    }
    
    /* بهینه‌سازی modal */
    .prize-modal-overlay {
        backdrop-filter: blur(4px);
    }
}

