.miniapp-container[data-app-type="coupon"] {
    margin: 15px 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent !important;
    max-width: 100%;
    color: #e0e0e0;
}

.miniapp-container[data-app-type="coupon"] * {
    box-sizing: border-box;
}

.coupon-app {
    width: 100%;
    background: transparent;
    color: #e0e0e0;
}

.coupon-container {
    display: flex;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px dashed #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.coupon-left {
    flex: 1;
    padding-right: 20px;
}

.coupon-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
    border-left: 2px dashed #667eea;
    min-width: 120px;
}

.coupon-title {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coupon-description {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 15px;
    line-height: 1.5;
}

.coupon-score {
    font-size: 32px;
    font-weight: 700;
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.coupon-claim-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.coupon-claim-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.coupon-claim-btn:active:not(:disabled) {
    transform: translateY(0);
}

.coupon-claim-btn:disabled {
    background: #2a2a3e;
    color: #666666;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.coupon-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.4);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.coupon-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.miniapp-error {
    padding: 24px;
    background: #1a0d0d;
    color: #7a4a4a;
    border: 1px solid #3a1a1a;
    border-radius: 9px;
    text-align: center;
    font-size: 18px;
}

.miniapp-loading {
    text-align: center;
    padding: 30px;
    color: #3a3a3a;
    font-size: 18px;
}

@media (max-width: 768px) {
    .coupon-container {
        flex-direction: column;
        padding: 15px;
    }
    
    .coupon-left {
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .coupon-right {
        padding-left: 0;
        border-left: none;
        border-top: 2px dashed #667eea;
        padding-top: 15px;
        min-width: auto;
    }
    
    .coupon-title {
        font-size: 20px;
    }
    
    .coupon-score {
        font-size: 28px;
    }
    
    .coupon-claim-btn {
        width: 100%;
        font-size: 14px;
    }
    
    .coupon-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 14px;
        padding: 12px 20px;
    }
}

