/* Deriv OAuth Integration Styles */

.deriv-oauth-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.deriv-oauth-box {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 31, 58, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.deriv-oauth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f53676, transparent);
}

.deriv-oauth-icon {
    width: 80px;
    height: 80px;
    background: rgba(245, 54, 118, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: #f53676;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 54, 118, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(245, 54, 118, 0);
    }
}

.deriv-oauth-icon.deriv-success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.deriv-oauth-box h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
}

.deriv-description {
    color: #b0b8d4;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.deriv-features {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 25px 20px;
    margin: 30px 0;
    text-align: left;
}

.deriv-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #ffffff;
    font-size: 0.95rem;
}

.deriv-feature-item i {
    color: #4ade80;
    font-size: 18px;
    flex-shrink: 0;
}

/* Buttons */
.deriv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 10px 5px;
}

.deriv-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.deriv-btn:hover::before {
    left: 100%;
}

.deriv-btn-primary {
    background: #f53676;
    color: white;
    box-shadow: 0 10px 30px rgba(245, 54, 118, 0.3);
}

.deriv-btn-primary:hover {
    background: #d62d64;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(245, 54, 118, 0.4);
    color: white;
    text-decoration: none;
}

.deriv-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.deriv-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

.deriv-note {
    margin-top: 25px;
    padding: 15px;
    background: rgba(245, 54, 118, 0.05);
    border: 1px solid rgba(245, 54, 118, 0.2);
    border-radius: 8px;
    color: #b0b8d4;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.deriv-note i {
    color: #f53676;
    font-size: 16px;
    flex-shrink: 0;
}

.deriv-note.deriv-warning {
    background: rgba(251, 191, 36, 0.05);
    border-color: rgba(251, 191, 36, 0.2);
}

.deriv-note.deriv-warning i {
    color: #fbbf24;
}

/* Connected Account Info */
.deriv-connected {
    border-color: rgba(74, 222, 128, 0.3);
}

.deriv-account-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.account-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-info-item:last-child {
    border-bottom: none;
}

.account-info-item .label {
    color: #b0b8d4;
    font-size: 0.9rem;
    font-weight: 500;
}

.account-info-item .value {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.status-active {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.status-badge.status-inactive {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.deriv-actions {
    margin: 30px 0;
}

/* Loading State */
.deriv-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #f53676;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .deriv-oauth-container {
        padding: 10px;
        margin: 20px auto;
    }
    
    .deriv-oauth-box {
        padding: 40px 25px;
    }
    
    .deriv-oauth-box h3 {
        font-size: 1.5rem;
    }
    
    .deriv-btn {
        width: 100%;
        justify-content: center;
        margin: 10px 0;
    }
    
    .deriv-features {
        padding: 20px 15px;
    }
    
    .account-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Success/Error Messages */
.deriv-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.deriv-message.success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.deriv-message.error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.deriv-message i {
    font-size: 20px;
}
