/* Settings Page Styles */
.settings-page {
    min-height: 100vh;
    background-color: #1a1a1a;
    padding: 40px 0;
}

.settings-page .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.settings-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Settings Cards */
.settings-card {
    background: #2d2d2d;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #404040;
}

/* Subscription Card */
.subscription-card {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.subscription-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.subscription-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subscription-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subscription-label {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
}

.subscription-logo {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.subscription-status {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.subscription-btn {
    background: #ffffff;
    color: #8B5CF6;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.subscription-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Settings Items */
.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-label {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
}

.settings-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Payment Methods */
.payment-methods-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-method-icon {
    width: 40px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-method-number {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.payment-method-security {
    font-size: 12px;
    color: #888;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #2d2d2d;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    z-index: 1001;
    border: 1px solid #404040;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #404040;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #404040;
    color: #ffffff;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid #404040;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8B5CF6;
}

/* Modal Buttons */
.modal-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-btn-secondary {
    background: #404040;
    color: #ffffff;
}

.modal-btn-secondary:hover {
    background: #555555;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #ffffff;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Payment Methods Modal */
.payment-methods-list {
    margin-bottom: 24px;
}

.payment-method-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #404040;
    margin-bottom: 12px;
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-method-type {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.payment-method-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.default-badge {
    background: #8B5CF6;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.remove-payment-btn {
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.remove-payment-btn:hover {
    background: #b91c1c;
}

.add-payment-btn {
    width: 100%;
    background: #404040;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.add-payment-btn:hover {
    background: #555555;
}

/* Snackbar */
.snackbar {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #2d2d2d;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid #404040;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.snackbar.show {
    transform: translateX(0);
}

.snackbar-success {
    border-left: 4px solid #10b981;
}

.snackbar-error {
    border-left: 4px solid #dc2626;
}

.snackbar-info {
    border-left: 4px solid #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-title {
        font-size: 32px;
    }
    
    .subscription-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .settings-item {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}
