/**
 * Profile hub — tab bar + avatar picker (extends page-shell.css tab patterns)
 */
@layer page-shell {

.profile-hub-nav.page-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 10px 12px;
    margin: 16px 0 20px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 136, 0.28);
}

.profile-hub-nav.page-tabs::-webkit-scrollbar { height: 6px; }
.profile-hub-nav.page-tabs::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.35);
    border-radius: 999px;
}

.profile-hub-nav .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.profile-wallet-subnav.page-tabs {
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.profile-layer-security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.profile-layer-card {
    padding: 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-layer-card h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: #00d4ff;
}

.profile-layer-card p {
    margin: 0;
    font-size: 0.82rem;
    opacity: 0.85;
}

.profile-avatar-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.profile-avatar-preview-wrap {
    text-align: center;
}

.profile-avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #00ff88;
    object-fit: cover;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
}

.profile-avatar-picker {
    flex: 1;
    min-width: 220px;
}

.profile-avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 8px;
    max-width: 420px;
    margin-top: 10px;
}

.profile-avatar-option {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.profile-avatar-option:hover,
.profile-avatar-option.selected {
    border-color: #00ff88;
    transform: scale(1.05);
}

.profile-avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-url-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

.profile-avatar-url-row input {
    flex: 1;
    min-width: 200px;
    padding: 9px 10px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.32);
    color: #fff;
}

@media (max-width: 600px) {
    .profile-avatar-panel {
        flex-direction: column;
        align-items: center;
    }
}

} /* end @layer page-shell */
