/* Redeem Code Modal Styles */

.redeem-code-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10002;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.redeem-code-modal.active {
    display: flex;
}

.redeem-code-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px 35px;
    box-sizing: border-box;
}

/* Decorative Elements */
.redeem-decorative-top-left {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #fbbf24;
    font-size: 32px;
    opacity: 0.8;
    z-index: 1;
}

.redeem-decorative-top-right {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
}

.envelope-icon {
    position: relative;
    width: 50px;
    height: 50px;
}

.envelope-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #dc2626;
    border-radius: 8px;
    transform: rotate(-10deg);
}

.envelope-icon i {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.envelope-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #fbbf24;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 2;
}

.redeem-decorative-bottom-left {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #fbbf24;
    font-size: 28px;
    opacity: 0.7;
    z-index: 1;
}

.redeem-decorative-bottom-right {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: #fbbf24;
    font-size: 32px;
    opacity: 0.8;
    z-index: 1;
}

/* Background Patterns */
.redeem-background-patterns {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.card-symbols {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0.15;
}

.card-symbols i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.3);
}

/* Content */
.redeem-code-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.redeem-code-title {
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 20px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.redeem-code-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0 0 30px 0;
    padding: 0 10px;
}

.redeem-code-input-wrapper {
    margin-bottom: 25px;
}

.redeem-code-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

.redeem-code-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.redeem-code-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.redeem-code-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.redeem-code-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.redeem-code-btn:active {
    transform: translateY(0);
}

/* Close button (optional, can be added if needed) */
.redeem-code-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.redeem-code-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
    .redeem-code-container {
        max-width: 90%;
        padding: 30px 25px;
    }

    .redeem-code-title {
        font-size: 26px;
    }

    .redeem-code-description {
        font-size: 14px;
    }

    .redeem-decorative-top-left,
    .redeem-decorative-top-right,
    .redeem-decorative-bottom-left,
    .redeem-decorative-bottom-right {
        font-size: 24px;
    }

    .envelope-icon {
        width: 40px;
        height: 40px;
    }

    .envelope-icon i {
        font-size: 22px;
    }
}

