/* =========================================================================
   PROFILE PICKER
   ========================================================================= */
#profile-picker-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

.profile-picker {
    text-align: center;
    width: 100%;
    max-width: 360px;
}

.pp-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.pp-brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background:
        radial-gradient(50% 50% at 30% 30%, #14b8a6 0%, transparent 60%),
        radial-gradient(50% 50% at 70% 70%, #0ea5e9 0%, transparent 60%),
        linear-gradient(135deg, #134e4a 0%, #0c3a4a 100%);
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.3);
}

.pp-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.profile-picker h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.01em;
}

#profile-name-form,
#profile-pin-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#profile-name-form.hidden,
#profile-pin-form.hidden {
    display: none;
}

#profile-name-input,
#profile-pin-input {
    padding: 14px 18px;
    font-size: 1.05rem;
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
}

#profile-pin-input {
    text-align: center;
    letter-spacing: 0.4em;
    font-size: 1.4rem;
}

#profile-name-input:focus,
#profile-pin-input:focus { border-color: var(--accent); }

.profile-pin-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin: 4px 0 0;
    min-height: 1.1em;
}

.profile-pin-error.hidden { display: none; }

.profile-link-btn {
    background: none;
    border: 0;
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 4px;
    padding: 8px;
    cursor: pointer;
}

.profile-link-btn:hover { text-decoration: underline; }

.profile-pick-btn {
    padding: 14px 32px;
    font-size: 1.05rem;
    background: var(--accent);
    border: none;
    color: #fff;
    border-radius: var(--radius);
    cursor: pointer;
    min-height: 52px;
    font-weight: 700;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.profile-pick-btn:hover { background: var(--accent-2); }

.profile-picker-hint {
    font-size: 0.78rem;
    color: var(--text-3);
    margin: 2px 0 0;
}

/* Profile Badge */
.profile-badge {
    font-size: 0.72rem;
    color: var(--accent);
    padding: 3px 9px;
    background: var(--accent-glow);
    border-radius: 99px;
    font-weight: 600;
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-badge:empty { display: none; }
