/* P21 Claim Section Styles */

.p21-section {
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.p21-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.p21-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #ff6b35, #f472b6);
}

.p21-header {
    text-align: center;
    margin-bottom: 25px;
}

.p21-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.p21-title {
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
}

.p21-subtitle {
    color: #e0d4ff;
    font-size: 0.95em;
    margin: 0;
}

.p21-stats {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.p21-stat {
    text-align: center;
}

.p21-stat-value {
    display: block;
    font-size: 1.4em;
    font-weight: 700;
    color: #a855f7;
}

.p21-stat-label {
    display: block;
    font-size: 0.75em;
    color: #e0d4ff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.p21-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.p21-info-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.p21-info-label {
    font-size: 0.75em;
    color: #e0d4ff;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.p21-info-value {
    font-size: 1em;
    color: #f3f4f6;
    font-weight: 600;
}

.p21-claim-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1em;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #a855f7, #ff6b35);
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 20px;
}

.p21-claim-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.p21-claim-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.p21-claim-btn.claimed {
    background: linear-gradient(135deg, #10b981, #059669);
}

#p21-status {
    text-align: center;
    margin-top: 15px;
    min-height: 24px;
}

.p21-info {
    color: #e0d4ff;
    font-size: 0.9em;
}

.p21-won {
    color: #10b981;
    font-weight: 600;
}

.p21-lost {
    color: #f59e0b;
    font-weight: 600;
}

#p21-result {
    display: none;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-radius: 12px;
    animation: fadeIn 0.5s ease;
}

#p21-result.won {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

#p21-result.lost {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.p21-result-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.p21-result-text {
    font-size: 1.1em;
    font-weight: 600;
}

/* Lottery Animation Overlay */
.p21-lottery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.p21-lottery-box {
    text-align: center;
    padding: 50px;
}

.p21-lottery-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border: 4px solid rgba(168, 85, 247, 0.2);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.p21-lottery-text {
    font-size: 1.5em;
    color: #a855f7;
    font-weight: 600;
}

.p21-lottery-result {
    font-size: 2.5em;
    font-weight: 800;
    animation: scaleIn 0.5s ease;
}

.p21-lottery-result.win {
    color: #10b981;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.p21-lottery-result.lose {
    color: #f59e0b;
}

.p21-win-burst {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: burst 0.5s ease-out;
}

/* Toast notifications */
.p21-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.p21-toast.show {
    transform: translateX(-50%) translateY(0);
}

.p21-toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.p21-toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.p21-toast.info {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes burst {
    from { transform: scale(0); opacity: 1; }
    to { transform: scale(3); opacity: 0; }
}

/* Responsive */
@media (max-width: 480px) {
    .p21-info-grid {
        grid-template-columns: 1fr;
    }

    .p21-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .p21-stat {
        flex: 1 1 30%;
    }
}
