/* Enhanced Dashboard Styles */

/* Dashboard Header Actions */
.dashboard-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.payment-settings-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.payment-settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

/* Payment Section */
.payment-section {
    margin-bottom: 3rem;
}

.payment-overview {
    margin-bottom: 2rem;
}

.payment-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    border: 2px solid rgba(240, 147, 251, 0.3);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    animation: shimmer 3s infinite;
}

.payment-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.payment-info {
    flex: 1;
}

.payment-balance {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.payment-label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.minimum-withdrawal {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-action-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.payment-action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.withdrawal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.withdrawal-btn:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* Withdrawal History */
.withdrawal-history h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.withdrawal-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.withdrawal-status .status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.withdrawal-details {
    text-align: right;
}

.withdrawal-amount {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.withdrawal-date,
.withdrawal-method {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.no-withdrawals {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Payment Modal Styles */
.payment-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.payment-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 2rem;
}

.balance-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.balance-label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.minimum-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.payment-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method-option {
    cursor: pointer;
}

.payment-method-option input {
    display: none;
}

.payment-method-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.payment-method-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.payment-method-option input:checked + .payment-method-card {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.payment-details {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.stripe-connect-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stripe-connect-card i {
    font-size: 3rem;
    color: #635bff;
}

.stripe-connect-content {
    flex: 1;
}

.stripe-status {
    margin-bottom: 1rem;
}

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

.not-connected {
    color: #ef4444;
    font-weight: 600;
}

.stripe-connect-btn {
    background: #635bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stripe-connect-btn:hover {
    background: #5a52ff;
    transform: translateY(-1px);
}

.withdrawal-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.withdrawal-section h3 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.withdrawal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.withdrawal-amount {
    display: flex;
    gap: 1rem;
}

.withdrawal-amount input {
    flex: 1;
}

.withdrawal-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-align: center;
}

/* Form Elements */
.form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 1rem;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-help {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

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

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .payment-actions {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
    
    .payment-action-btn {
        min-width: auto;
        flex: 1;
    }
    
    .withdrawal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .withdrawal-details {
        text-align: left;
        width: 100%;
    }
    
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .withdrawal-amount {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .payment-card {
        padding: 1.5rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
}