/* ============================================
   SETTINGS MODAL
   Account settings popup
   ============================================ */

.settings-modal {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-modal.active {
    opacity: 1;
}

.settings-modal.closing {
    opacity: 0;
}

.settings-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.settings-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.settings-modal.active .settings-content {
    transform: translateY(0);
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.settings-header h3 {
    margin: 0;
    color: var(--primary-color, #8B0000);
    font-size: 20px;
}

.settings-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    color: #555;
}

.settings-body {
    overflow-y: auto;
    padding: 20px;
    max-height: calc(90vh - 60px);
}

.settings-group {
    margin-bottom: 20px;
}

.settings-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.settings-hint {
    margin-top: 4px;
    font-size: 12px;
    color: #888;
    margin-bottom: 0;
}

.settings-group input[type="text"],
.settings-group input[type="email"],
.settings-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.settings-group input[type="text"]:focus,
.settings-group input[type="email"]:focus,
.settings-group input[type="tel"]:focus {
    border-color: var(--primary-color, #8B0000);
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.settings-group input[disabled] {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* ---- Toggle Switches ---- */
.settings-toggles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color, #8B0000);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* ---- Actions ---- */
.settings-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
}

.settings-save {
    background: linear-gradient(to right, #8B0000, #a50000);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-save:hover {
    background: linear-gradient(to right, #a50000, #c10000);
    transform: translateY(-2px);
}

.settings-save.success {
    background: linear-gradient(to right, #2ecc71, #27ae60);
}
