.settings-page {
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.settings-page h2 {
    font-size: 2rem;
    color: #e8c97a;
    margin-bottom: 0.5rem;
}

.settings-page p {
    color: #aaa;
    margin-bottom: 2rem;
}

.settings-section {
    background-color: #1a1a1a;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.settings-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 0.75rem;
}

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

.settings-form label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #ccc;
}

.settings-form input,
.settings-form select {
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid #333;
    background-color: #111;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
}

.settings-form input:focus,
.settings-form select:focus {
    outline: none;
    border-color: #e8c97a;
}

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

.settings-status {
    padding: 0.7rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.settings-status.success {
    display: block;
    background-color: rgba(100, 200, 100, 0.1);
    border: 1px solid rgba(100, 200, 100, 0.4);
    color: #80e080;
}

.settings-status.error {
    display: block;
    background-color: rgba(220, 80, 80, 0.1);
    border: 1px solid rgba(220, 80, 80, 0.4);
    color: #e08080;
}

.settings-save-btn {
    align-self: flex-start;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.settings-save-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 600px) {
    .settings-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ─── Profile picture editor ─────────────────────────────────────────────────── */
.settings-hint {
    margin: -0.3rem 0 1rem;
    color: #888;
    font-size: 0.9rem;
}

.avatar-editor {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.avatar-preview {
    flex: none;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: #e8c97a;
    border: 2px solid #6b5a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.avatar-letter {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
}

.avatar-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.avatar-actions .cta-button { width: auto; }
