/* Onboarding welcome modal (Task #61) — first-sign-in survey for display name + purpose.
   Styling mirrors the Quantum Chat modal pattern so it feels native across the platform. */
.ob-modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.78); z-index: 9999;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: ob-fade-in 0.2s ease;
}
@keyframes ob-fade-in { from { opacity: 0; } to { opacity: 1; } }

.ob-modal {
    background: #101010; border: 1px solid #2a2a2a; border-radius: 14px;
    max-width: 480px; width: 100%; max-height: 92vh; overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0,0,0,0.7);
}
.ob-modal-header {
    padding: 18px 22px 12px; border-bottom: 1px solid #1f1f1f;
}
.ob-modal-header h3 {
    margin: 0; color: #FFD700; font-size: 1.15rem; letter-spacing: 0.3px;
}
.ob-modal-header p {
    margin: 6px 0 0; color: #aaa; font-size: 0.85rem; line-height: 1.45;
}
.ob-modal-body { padding: 18px 22px; }
.ob-modal-footer {
    padding: 14px 22px; border-top: 1px solid #1f1f1f;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
}

.ob-label {
    display: block; color: #aaa; font-size: 0.74rem; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 6px; margin-top: 14px;
}
.ob-label:first-child { margin-top: 0; }
.ob-text-input {
    width: 100%; box-sizing: border-box;
    background: #181818; color: #fff; border: 1px solid #333; border-radius: 8px;
    padding: 10px 12px; font-size: 0.95rem; font-family: inherit;
}
.ob-text-input:focus { outline: none; border-color: #FFD700; }

.ob-purpose-group { display: flex; flex-direction: column; gap: 8px; }
.ob-purpose-chip {
    background: #181818; border: 1px solid #2a2a2a; color: #ddd;
    padding: 12px 14px; border-radius: 10px; cursor: pointer;
    font-family: inherit; font-size: 0.9rem; text-align: left;
    transition: border-color 0.15s, background 0.15s;
}
.ob-purpose-chip:hover { border-color: #555; background: #1f1f1f; }
.ob-purpose-chip.selected {
    border-color: #FFD700; background: rgba(255,215,0,0.08); color: #FFD700;
}
.ob-purpose-chip-title { font-weight: 600; display: block; }
.ob-purpose-chip-sub { display: block; color: #888; font-size: 0.78rem; margin-top: 2px; font-weight: 400; }
.ob-purpose-chip.selected .ob-purpose-chip-sub { color: #d8be60; }

.ob-other-input { margin-top: 10px; }

.ob-error {
    color: #ff7a7a; font-size: 0.82rem; margin-top: 8px; min-height: 1em;
}

.ob-btn {
    border: none; cursor: pointer; padding: 9px 18px; border-radius: 8px;
    font-weight: 600; font-size: 0.88rem; font-family: inherit;
    transition: transform 0.1s, opacity 0.1s;
}
.ob-btn:active { transform: scale(0.97); }
.ob-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ob-btn-primary { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.ob-btn-ghost { background: transparent; border: 1px solid #444; color: #ccc; }
.ob-btn-ghost:hover:not(:disabled) { border-color: #888; color: #fff; }

/* Profile page — purpose chips reuse the same look. */
.ob-profile-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
