.settings-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.settings-page h1 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
}

.settings-page > p {
    margin-bottom: 30px;
    color: var(--muted-color);
    font-size: 15px;
}

.settings-card {
    margin-bottom: 24px;
    padding: 26px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-color);
}

.settings-card h2 {
    margin-bottom: 22px;
    color: var(--text-color);
    font-size: 19px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:first-of-type {
    padding-top: 0;
}

.setting-item:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
}

.setting-item h3 {
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 700;
}

.setting-item p {
    margin: 0;
    color: var(--muted-color);
    font-size: 13px;
    line-height: 1.6;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 52px;
    height: 28px;
}

.switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.slider {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: #3f3f46;
    cursor: pointer;
    transition: 0.25s ease;
}

.slider::before {
    position: absolute;
    content: "";
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #ffffff;
    transition: 0.25s ease;
}

.switch input:checked + .slider {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.switch input:checked + .slider::before {
    transform: translateX(24px);
}

.switch input:focus-visible + .slider {
    outline: 3px solid rgba(139, 92, 246, 0.35);
    outline-offset: 3px;
}

/* Save button */
.btn-primary {
    min-height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

#saveMessage {
    margin-top: 14px;
    color: #a78bfa;
    font-size: 14px;
    font-weight: 600;
}

/* Mobile layout */
@media (max-width: 600px) {
    .settings-card {
        padding: 22px 18px;
    }

    .setting-item {
        align-items: flex-start;
        gap: 16px;
    }

    .setting-item h3 {
        font-size: 14px;
    }

    .setting-item p {
        font-size: 12px;
    }

    .switch {
        margin-top: 2px;
    }

    .btn-primary {
        width: 100%;
    }
}


.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border: 2px solid #8b5cf6;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}